Hi Erik,
The way i finally handled this is: since i was passing to the render
command the list of layers to be rendered and you can know when a new layer
has started rendering you can infere the current layer because the order in
which they are rendered is the same order that you passed to the rend
Digging this up as I am having a similar problem.
Using editRenderLayerGlobals -q -currentRenderLayer in a preRender script
always returns the same layer no matter what -rl flag have been used to start
the render.
--
You received this message because you are subscribed to the Google Groups
"P
Thanks Josh, but that doesnt work either, its querying the RenderSetup
Widget Configuration.
What im asking is to be notified of the render layer name when it is
actually being rendered in batch process, therefore, independent from the
main thread and GUI.
This is kind of a very specific geeky ques
this may or may not operate the same as the globals query, but worth a shot
in your case.
import maya.app.renderSetup.model.renderSetup as renderSetup
rs = renderSetup.instance()
layer = rs.getVisibleRenderLayer()
# you can do all sorts of stuff/queries on the layer now...
layer.name() # name of