Textport - renaming multiple paths

   837   1   0
User Avatar
Member
136 posts
Joined: 3月 2016
Offline
Hello
I'm just trying to automatically rename multiple paths for a number of embedded files in an HDA using the textport.

The original paths are:
$HIP/FINAL_FBX/xxx.fbx
So using this:
opchange \$HIP/FINAL_FBX/ opdef:../..?

However the forward slash after the FINAL_FBX is causing a problem and it wont run.
If i use without the '/' it works fine, but then I still have the / in the new path so its not correct
opchange \$HIP/FINAL_FBX opdef:../..?

Must be somthing to do with the last / but i can figure it out?
Love Houdini
User Avatar
Member
136 posts
Joined: 3月 2016
Offline
Figured it out i needed the -i option and to do it as a string:

opchange -i '$HIP/FINAL_FBX/' 'opdef:../..?'
Love Houdini
  • Quick Links