Jump to content
Sign in to follow this  

Expressions in file names. Mantra output file

Recommended Posts

Hey guys,

How can I change the path in mantra Output file

from: P:/projectname/shotname/fx/work/houdini/hip

to: V:/projectname/shotname/fx/geo

can`t figure out how to run strreplace twice.

this doesn`t work: `strreplace($HIP, P:, V:)` `strreplace($HIP, work/houdini/hip, geo)`


$HIP is P:/projectname/shotname/fx/work/houdini/hip


also + is to add to the path, how can i subtract from the path?






Share this post

Link to post
Share on other sites

Got it.

`strreplace(strreplace($HIP, work/houdini/hip, geo), P:, V:)`

 no backticks if you put expression function in to an expression function.

Still don`t get it properly. When to use any of those 3: `' "

ch('whatever') ch("whatever") works both in vex.

Where could I find proper info about those guys (`' ")?


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this