Hi All

I've come across an issue with my program that is referencing scenes with 
render layers.  While the script is running, it references, but then cannot 
find the render layers. The layers seem to complete referencing after the 
code is executed.

I am currently opening maya via cmd line, running a script via mayapy and 
in that script, referencing a render scene with layers, then referencing a 
camera + other assets. Following this, it checks for active render layers 
to submit to render, but for some reason, It's been unable to find the 
layers on some of our scenes, but does find them on others.

I've tried adding a line to process idle events in case maya was deferring 
the layer creation after referencing, but no luck. I used 
maya.utils.processIdleEvents()


Would love to hear if anyone here has any suggestions, ideas or knowledge 
as to why this would be happening.

Take care, 

Chad 

-- 
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/47190852-ee4b-44c3-ac82-d3caa2d9bd9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to