While I am able to append the lists of formats by using the following code:
import maya.cmds as cmds
formatLs = Format.showDefaults()
wrkLs = []
for i in formatLs:
if 'Working Extractions' in str(i):
wrkLs.append(i)
def printNewFormat(item):
print item
window = cmds.window()
cmds.columnLayout()
cmds.optionMenu (label = 'Select a format', changeCommand = printNewFormat)
for x in wrkLs:
cmds.menuItem(label=x)
cmds.showWindow( window )
I am still unable to append / change the film format of the selected camera
to the option chosen in the ui, which is something I am having trouble with
at the moment..
Need some insights on that
On Wednesday, June 22, 2016 at 2:40:16 AM UTC-7, Cesar Saez wrote:
>
> Those are hardcoded presets, you can see what's going on by inspecting.
>
> /usr/autodesk/maya/scripts/AETemplates/AEcameraFilmbackNew.mel
> (/usr/autodesk/maya/ is the directory where maya is installed on linux,
> replace it for whatever makes sense in your system)
>
> Said that, I would not recommend you to modify/hack that file, maintain
> custom AETemplates is not fun at all.
> If anything I would create my own generic templates, it's not more than a
> dictionary mapping attrName/value exported in a markup language (json, yaml
> or whatever makes sense to you) and a for loop setting those values or
> populating the dictionary.
>
> Good luck!
>
--
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/65ba81c4-5651-472d-9478-27272c6df96e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.