[Maya-Python] How to select and use a newly created render layer within the same script?

2009-03-20 Thread kzax
Hi, I'l trying to create render layers and then select objects in them to connect different shaders. The problem is that in the same scipt I can't select the render layers because the render layer window is not refreshed. def f1(): mc.select('head_HR',r=1) sel = mc.ls(sl=1) for l in r

[Maya-Python] AETemplates in Python

2009-03-20 Thread q2on
Is it possible? I can't get Maya to use my AETemplate.py... only .mel. Thanks --~--~-~--~~~---~--~~ http://groups.google.com/group/python_inside_maya -~--~~~~--~~--~--~---

[Maya-Python] Re: AETemplates in Python

2009-03-20 Thread Chad Dombrova
i've bugged autodesk about this before. file a bug report so that they get the message loud and clear. --~--~-~--~~~---~--~~ http://groups.google.com/group/python_inside_maya -~--~~~~--~~--~--~---

[Maya-Python] Re: AETemplates in Python

2009-03-20 Thread Ravi Jagannadhan
I don't think it's possible in 2009. On Fri, Mar 20, 2009 at 2:54 PM, q2on wrote: > > Is it possible? I can't get Maya to use my AETemplate.py... only .mel. > Thanks > > > > > > -- Where we have strong emotions, we're liable to fool ourselves - Carl Sagan --~--~-~--~~---

[Maya-Python] Re: AETemplates in Python

2009-03-20 Thread Hradec
its possible with some hacking... in python, you can register a mel proc for the AETemplate (yes, an AETemplate can be sourced dinamically, it doesn't necessarely need to have a AETemplate.mel file)... I'm doing it in my slum project... check it out the __init__ code for my AETemplate python clas

[Maya-Python] Dynamic attributes marked as NOT storable are saved

2009-03-20 Thread barnabas79
Just made a bug report to autodesk, but since that's not viewable to the general public, posting here too: Dynamic attributes created with addAttr that have the storable flag set to false are still written out to the file - see: http://pastebin.com/f3b83af36 import maya.cmds as cmds # Create a