Hi there,
So if you create a camera >> Attribute Editor, under the Film Back section,
there is this field called Film Gate.
Suppose this camera of mine, its Film Gate is called '35mm Default' and I
had wanted to access/modify this attribute to '35mm Delivery'
However in these 2 Film Gates, their Aperature values are the same except
for its naming.
How can I change the Film Gate?
As for your code, it is only accessing the horizontal and vertical aperture
values in which it is something related but not I want..
On Tuesday, June 21, 2016 at 12:17:07 PM UTC-7, Andres Weber wrote:
>
> I'm not sure I understand you right in regards to the delivery/default
> thing...but accessing film back is easy:
> *cmds:*
> import maya.cmds as cmds
>
> cmds.getAttr("myCameraShape.horizontalFilmAperture")
> cmds.getAttr("myCameraShape.verticalFilmAperture")
>
> *pymel:*
> pm.PyNode('myCamera').getShape().horizontalFilmAperture.get()
> pm.PyNode('myCamera').getShape().verticalFilmAperture.get()
>
> default value for setting/getting is in inches so be sure to do your
> conversion from mm if you need to.
>
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/c5ec996f-4aa1-40dc-a160-fd5782d92ce1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.