opchange issue

   1287   2   1
User Avatar
Member
217 posts
Joined: 9月 2009
Offline
I have a geo at obj/level called "geo1"

want to use the opchange command to rename it to "test"

Texporter:

/ -> opchange geo1 test
Changing geo1 to test
No references to geo1 found.???
/ ->




I am glad for any advice. Thx!
Edited by mickyblue - 2023年2月24日 07:10:03
User Avatar
Member
139 posts
Joined: 3月 2016
Offline
Not spacifically about renaming but maybe somthing useful - https://www.jamesrobinsonvfx.com/tips/workflow/2021/03/26/opchange/ [www.jamesrobinsonvfx.com]
Love Houdini
User Avatar
Member
732 posts
Joined: 12月 2006
Offline
Yeah, opchange isn't for renaming... you can make a list of the files you want to rename with "opfind -t" then loop over them using opname to rename. Not at Houdini right now, but something like..


set nodes = `execute("opfind -t *geo*")`

set count = 0
foreach x ($nodes)
   opname $x foo{$count}
   set count = $count + 1
end
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
  • Quick Links