Jump to content

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?

 

Cheers

Janis

 

 

Link to comment
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 (`' ")?

Cheers

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...