Hello!
I wonder how can i have uniquename and suffix in a single line code.
For instance if you run this line:
for points = 1 to 3 do (point size:1 name:(uniquename "Spine_"+"_helper"))
the output will be:
$Point_Helper:Spine001__helper @ [0.000000,0.000000,0.000000]
$Point_Helper:Spine001__helper @ [0.000000,0.000000,0.000000]
$Point_Helper:Spine001__helper @ [0.000000,0.000000,0.000000]
Notice that the objects in the scene don't have unique names at all. Objects has the same name!
I tried this line, but is not quite correct..
for points = 1 to 3 do (point size:1 name:(uniquename "Spine_") + "_helper")
the output is:
-- Unable to convert: "_helper" to type:
Long story short, it is possible in a single mxs line code, the final result to be:
$Point_Helper:Spine_001_helper
$Point_Helper:Spine_002_helper
$Point_Helper:Spine_003_helper
?
Thanks in advance,
-E.
miauu · 2017-08-02