Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Import a global template render layer with python

Import a global template render layer with python

jEchoes
Participant Participant
494 Views
1 Reply
Message 1 of 2

Import a global template render layer with python

jEchoes
Participant
Participant

Hello, I'm struggling to find any info on how to import a template layer with  python.

 

jEchoes_0-1727212520008.png

 

I have found this

 

 

def importRenderSetup(filename):
    with open(filename, "r") as file:
        renderSetup.instance().decode(json.load(file), renderSetup.DECODE_AND_OVERWRITE, None)

 

 

 

But I guess this is erroring out because its for a setup, not a layer. 

 

Any leads appreciated.

 

Thanks!

 

0 Likes
495 Views
1 Reply
Reply (1)
Message 2 of 2

sschierwater
Explorer
Explorer

i'm really struggling to find out how to do this as well. 
i don't understand why there still isn't a proper documentation on the "new" rendersetup

0 Likes