Changing name of subnetwork in HDA

   1783   3   0
User Avatar
Member
340 posts
Joined: June 2017
Offline
Short of recreating a HDA, is there a way to change the default name of the subnetwork in a HDA? I can add the HDA and change its name each time, but I am not sure how to change the default. In the example below, the name of the HDA is “Studio” but it comes in as “isleofgough_studio1” and I can change the name in Houdini but don't know how to change the default in the HDA. Thanks.

Attachments:
HDArename.jpg (229.1 KB)

User Avatar
Member
7737 posts
Joined: Sept. 2011
Offline
You can either use the opfirstname hscript command in some kind of startup script, or if it needs to be tied with the asset, modify the tool script so that it sets the newly created node's name.
User Avatar
Member
8522 posts
Joined: July 2007
Online
you can also use HDAs OnCreated callback or global OnCreated.py

or if it was not your intention to name your HDA type “isleofgough_studio” in the first place, you can “rename” it by RMB on it in Asset Manager/Duplicate…
there change the Operator Name to your liking and Accept
then you can delete the old one RMB/Delete, but first you may need to replace all instances of the old operator type with the new type
Edited by tamte - Sept. 9, 2018 14:54:28
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
340 posts
Joined: June 2017
Offline
Duplicating in the Asset Manager and deleting the old one worked great! Thanks.
  • Quick Links