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 render command.
El jue., 11 jul. 2019 a las 0:11, <e...@goodbyekansas.com> escribió: > 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 > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to python_inside_maya+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/26eddc60-1fad-46ef-82b3-3d1151d9a257%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANOg8wU8dn1Xifab2Ob1e7%3DyMpSiF320eBM9s1AbE0WyNABa3A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.