Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I want to apply a dictionary of key/value data from a json file into Maya's render settings.
Currently, I have a dictionary of 16 items formatted as follows:
{u'defaultRenderGlobals.blurSharpness': 1.0, u'defaultRenderGlobals.enableDefaultLight': False}
I am unsure how exactly I should loop through the data and assign it all to the correct attributes inside Mata using cmds.setAttr() command.
Could anyone suggest a good method to assign them all? I am aware that Maya recommends it's own function to load the full render setup json, but here I am looking for a way so assign only certain arrays as required. For instance, I might only want to assign the settings values from all defaultRenderNodes.
Thank you,
Craig
Solved! Go to Solution.