Weerapot Chaoman

weerapot-c

About Me

EXPERTISE
Technical Director
INDUSTRY
Film/TV

Connect

LOCATION
Canada
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Copy parameter from one node to another using Python Nov. 14, 2024, 9:06 a.m.

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 Nov. 14, 2024, 12:18 a.m.

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? Oct. 28, 2024, 5:58 p.m.

Thank you so much!