I am trying to make a script in maya to export render layers to separate files. Though I am not clear on the logic to be applied for the script. I dont want any code just the procedure. Can anyone please help. Thanks in advance to all.
You can get all the render layers with
cmds.ls(type='renderLayer')
and the contents of each layer with
cmds.editRenderLayerMembers('layer-name-here', q=True)
You'l have to decide for yourself how to deal with objects that exist in multiple layers and so on.