embedding string expressions

   2143   1   1
User Avatar
Member
145 posts
Joined: 2月 2012
オフライン
Im saving out particles to disk by wedging 10 versions to disk.
Now to load them back up I was thinking a foreach sop would do the trick, which it does nicely if im explicitly giving the bgeo file path like this:
Zhoudini/bgeo/PARTICLES_start_00`stamps(“..”, chs(“../forstamp”), 0)`/PARTICLES_start.$F4.bgeo.gz

The problem is I want to use the channel reference to the geo ROP so I keep it all synced up.
This means i need to embed a string expressio nin another string expression which dosent work because backticks dont work like brackets:
`chs((“/out/PARTICLES_start_”`padzero(3, stamps(“..”, chs(“../forstamp”), 0))`“/sopoutput”))`

Any ideas?
User Avatar
Member
9386 posts
Joined: 7月 2007
オフライン
something like this should work, of course depends on your node names and how you are using it

`chs(“/out/PARTICLES_start_” + padzero(3, stamp(“..”, chs(“../forstamp”), 0)) + “/sopoutput”)`
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links