[Sidefx-houdini-list] Rename via Python Script

Graham Thompson 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")

container.createDigitalAsset("my_asset_name", "my_asset_file_path",

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
> maya.
> 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..
> Thanks!
> Jed-
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

More information about the Sidefx-houdini-list mailing list