Re: [Maya-Python] query current layer in batch render process

2019-07-11 Thread Juan Cristóbal Quesada
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

Re: [Maya-Python] query current layer in batch render process

2019-07-10 Thread erik
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

Re: [Maya-Python] query current layer in batch render process

2019-01-15 Thread Juan Cristóbal Quesada
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

Re: [Maya-Python] query current layer in batch render process

2019-01-14 Thread Josh Carey
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