Jump to content

[SOLVED]Expression in Geometry ROP node


Recommended Posts

Hi could anyone help me with this expression that I use in Geometry ROP node in OUT context?

basically I just need to look for /light/ in the string and if it`s there replace it with /fx/

Here`s what my expression looks now. and If I save hiop somewhere else expression breaks :(


`strreplace(strreplace($HIP, houdini/hip, cache), P:, V:)`/cache_001.$F4.bgeo.sc

V:/project/sequences/201/201_0020/fx/work/cache/cache_001.0957.bgeo.sc

$HIP    -   P:/project/sequences/201/201_0020/fx/work/houdini/hip

$HIP(in lighting)    -   P:/project/sequences/201/201_0020/light/work/houdini/hip


look for      /light/
if there is no /light/ in the string do nothing
else
replace with  /fx/

 

Thanks a lot

Janis

Link to comment
Share on other sites

  • cudarsjanis changed the title to [SOLVED]Expression in Geometry ROP node

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...