Weerapot Chaoman

weerapot-c

About Me

専門知識
Technical Director
業界:
Film/TV

Connect

LOCATION
Canada
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

Copy parameter from one node to another using Python 2024年11月14日9:06

Hello viklc,

Thank you for your detailed reply!
I could be wrong, but your answer don't really solve my problem.
I am not working with HDA in this case, but from my understanding the methods are interchangable.

I can get a copy of a parm using ParmTemplate, but many of it's settings are different from the original parm.
Directly plugging it into the new parmTemplateGroup result in a parm that behaves slightly differently from the original.

What I ended up doing for now is to do the copy the parm manually (like in the pic I attached earlier), get the copied parm as parmTuple, get the settings through the templateAsData() command, save the setting somewhere and delete said parm.

Now I can somewhat proceed to recreate the parm that behaves like the original.

I can get a copy of the parm using parmTemplate(), from then I set the parmTemplate with the setting I saved earlier, e.g.:
setTags, setScriptCallbackLanguage, setMenuType, setItemGeneratorScript, setItemGeneratorScriptLanguage etc.

Now, when I plug the parmTemplate into a new parmTemplateGroup, the parm behaves like the original.

It works, but it feels like a very roundabout way of approaching this.

Copy parameter from one node to another using Python 2024年11月14日0:18

Hello forum,

I am trying to copy parameter from one node to another using Python.

If you do it manually, you would have to go to:
edit parameter interface > create parameter > from node > then drag and drop the parm.



For some parm I can manually create the parm then connect it to the original parm.
But I would lost the functionality of some parm like the ability to select group like this:



If anyone can share how they would approach this, point me to resource or pages on help I would be very appreciated.

Thank you!

Creating/Editing Python Module on the HDA using Python? 2024年10月28日17:58

Thank you so much!