Well, just published this post: 
 https://groups.google.com/forum/#!topic/python_inside_maya/SUU6Y32NBrc and 
found on the next post on the list the same problem!
Great to see im not the only one...

El martes, 27 de octubre de 2015, 18:10:15 (UTC+1), Bob Loblaw escribió:
>
> Hello,
>
> I'm working on a surface shader plugin and have run into problems when the 
> attributes of the plugin are keyframed and the plugin is queried in a loop 
> that calls cmds.currentTime to change frames, as might happen during a bake 
> or a batch render. Has anyone seen something like this before? 
>
> The attached plugin and scenes are as boiled down as I could go. If you 
> run the following commands with the v001 scene that has no keyframes, the 
> loop runs as expected. If you run the commands in scene v002, where the 
> 'testMaterial' intensity attribute is keyframed, Maya hangs pretty much 
> immediately. Note that the keyframed attribute doesn't have to be queried 
> to cause the hang, it just has to be keyframed.
>
> Thanks in advance for your help,
> Bob
>
>
> nodesPath = "/tmp/maya"
> cmds.loadPlugin( "%s/testMaterial.py" % nodesPath )
>
> node = "testMaterial1"
> value = 0
> for i in range(0,10):
>     print( i )
>     print( "changing frames" )
>     cmds.currentTime(float(i))
>
>     #value = cmds.getAttr( "%s.%s" % (node, "intensity") )
>     print( i, value )
>
>

-- 
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/396c3884-6305-4899-a324-97511f490e85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to