foreach loop absolute path?

   1321   0   0
User Avatar
Member
333 posts
Joined: Oct. 2012
Offline
Hi,
i have 100 objects grouped separately and texturing them in one go with a for each. it works great but my function in the loop saves an absolute path instead of using a true $HIP/tex.rat. it uses c:\ on windows and hdname/ on linux.

this isnt a big issue but i'd like to save the geo and use it on other machines with relative paths to the material image and therefor i'm having a problem here.

i use this function in the foreach:
$HIP/textures/tex`opdigits(stamps(“..”, “FORVALUE”,“”))`.tif
but it saves an absolute path when i save the bgeo.

is it normal behavior?
should i go back to the old delete copy by $CY trick and assign material outside the foreach?

thanks in advance .
  • Quick Links