[Sidefx-houdini-list] Rename via Python Script
captainhammy at gmail.com
Tue Jan 18 10:33:54 EST 2011
Something like this should work. You can run it from the Python Shell
or paste it into the Python Source Editor and hit Accept.
container = hou.node("path/to/object")
for child in container.children():
new_name = child.name().replace("mesh", "skin")
On Tue, Jan 18, 2011 at 7:23 AM, Jed Schwartz <jed at jedschwartz.com> wrote:
> Hi All,
> I'm trying to write a "simple" python script for renaming and organizing the
> components of a rather complex model I've imported into houdini via FBX from
> They're are around 15000 children in the object. I'd like to be able to do
> something like change the name of mesh1- mesh1500 to skin1-skin1500-- then
> create digital asset from the collection.
> I'm new to python and welcome any suggestions..
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list