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.