okay incase there is someone with the same issue it seems I have found an 
answer:)

layers = rs.getRenderLayers()

for layer in layers:
    layerName = layer.name() #this will give the actual name of the render 
layer
    layer.createAbsoluteOverride('Aov_switch','Prod_AOV_Switch',0) 

There still seems to be an issue with the override not being given the 
value I am adding, but at least it is a minimal issue now:)

-- 
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/47c96232-90ce-4e4f-83f6-15349fdab3cb%40googlegroups.com.

Reply via email to