[Sidefx-houdini-list] Rename via Python Script
jed at jedschwartz.com
Tue Jan 18 10:39:51 EST 2011
Exactly what I was looking for!
On Jan 18, 2011, at 10:33 AM, Graham Thompson wrote:
> 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>
>> 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
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list