tntman Posted January 10, 2017 Share Posted January 10, 2017 (edited) hello, i want to change: /coppi/proj/projectname/shottree/assetb/flamethrowerfire/3d/houdini/geo/flamethrowerfire/flamesim/v004/flamethrowerfire_v004_flamesim.$F4.bgeo to /coppi/proj/projectname/shottree/assetb/flamethrowerfire/3d/houdini/geo/flamethrowerfire/flamesim/v004/flamethrowerfire_v004_flamesim.$F.bgeo with some thing like this, but its not working :/, any one know how to replace stuff in a string after it has evaluated the channel reference? `chs("../../../out/flamesim/outputPath")`:s/"$F4"/"$F" Edited January 10, 2017 by tntman Quote Link to comment Share on other sites More sharing options...
dimovfx Posted January 10, 2017 Share Posted January 10, 2017 try with strreplace https://www.sidefx.com/docs/houdini/expressions/strreplace Quote Link to comment Share on other sites More sharing options...
f1480187 Posted January 10, 2017 Share Posted January 10, 2017 parm = hou.parm('../../../out/flamesim/outputPath') expr = parm.unexpandedString().replace('$F4', '$F2') return hou.expandString(expr) How about Python expression? You may try to make chsraw, strreplace and evals expression functions work together. I had no luck. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.