Hello,
I need some help on creating a pyton script (shelf tool quick action/button) to rename selected objects based on hip file name and some variations inside the geo container objects. Would be great if someone can help on this.
I added the hip file with the use case.
Tks
Python script to rename selected objects (OBJ level)
1589 3 0-
- rrrlaralasar
- Member
- 4 posts
- Joined: Nov. 2021
- Offline
-
- Enivob
- Member
- 2658 posts
- Joined: June 2008
- Offline
There are limits to the character which can appear in a node name, also all node names must be unique. It's not a good idea to name nodes like files, you're bound to end up with mangled names due to automatic character replacement.
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
-
- rrrlaralasar
- Member
- 4 posts
- Joined: Nov. 2021
- Offline
EnivobYes - I know, but for this specific use case it will help. Also - the nodes in the geo container have unique name. I just want to append the hip file name to it. Can you help in this case? tks
There are limits to the character which can appear in a node name, also all node names must be unique. It's not a good idea to name nodes like files, you're bound to end up with mangled names due to automatic character replacement.
-
- Enivob
- Member
- 2658 posts
- Joined: June 2008
- Offline
You should google around. I quickly found this example. Which shows how to iterate over a selection and obtain hip file name.
https://www.sites.google.com/view/kishenpj/python/python [www.sites.google.com]
https://www.sites.google.com/view/kishenpj/python/python [www.sites.google.com]
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
-
- Quick Links

