question

Alan Jones avatar image
Alan Jones asked ·

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.

arnoldplugins
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

1 Answer

· Write an Answer
Stephen Blair avatar image
Stephen Blair answered ·

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.

3 comments Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

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..

0 Likes 0 · ·

...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.

0 Likes 0 · ·

Bump for above questions ;)

0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.