Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Override parent parameters in node_parameters

4 REPLIES 4
Reply
Message 1 of 5
alan-LFL
216 Views, 4 Replies

Override parent parameters in node_parameters

Hi all,

So say I'm writing a custom plugin, some types have parameters associated with them. (For instance, cameras have near_clip and far_clip).

The AiParameterFlt macro doesn't seem to be the way to do this as it's for declaring, adding the incremented index etc. Doing so in node_initialize would deprive users of having the ability to set it, as that's called upon instantiation.

How would I go about doing this in a DCC agnostic manner?

Cheers,

Alan.

Tags (2)
Labels (2)
4 REPLIES 4
Message 2 of 5
Stephen.Blair
in reply to: alan-LFL

If we understand correctly, *node_update* should allow you to override the parameters coming from the parent node, yet still let users set those parameters.



// Stephen Blair
// Arnold Renderer Support
Message 3 of 5
alan-LFL
in reply to: Stephen.Blair

Thanks, Stephen. This leads me to think I may have made bad assumptions about when node_update is executed, what it's job is, and how it interacts with parameters.

I'd thought it ran just prior to a render being executed and that it's job was to grab the state of any parameters and cache any render execution variables. If so, I would have expected that when I set there, it's overriding anything the user set.

cont..

Message 4 of 5
alan-LFL
in reply to: Stephen.Blair

...cont

This also raises the question of how it's reflected in the UI (i.e. if I set defaults for these inherited parameters, do they properly populate any dialogues for arnold parameters, continuing from that in the case of translators pushing parameters across from maya nodes to arnold, do these back propagate?)

Hopefully, that helps clarify my workflow concerns.

Cheers,

Alan.

Message 5 of 5
alan-LFL
in reply to: Stephen.Blair

Bump for above questions 😉

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report