[Sidefx-houdini-list] Rename via Python Script

nicholas pliatsikas nicholas.pliatsikas at gmail.com
Tue Jan 18 10:29:48 EST 2011


selected your nodes then run this in your python shell :¬)

for i in hou.selectedNodes():
    i.setName(i.name().replace("mesh","skin"))

Cheers
Nick

On Tue, Jan 18, 2011 at 3:23 PM, 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