Import a global template render layer with python

Import a global template render layer with python

jEchoes
Participant Participant
463 Views
0 Replies
Message 1 of 1

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
464 Views
0 Replies
Replies (0)