JO
jjvb-openscad@bassklampfe.de
Wed, Apr 27, 2022 12:46 PM
I tried something like
if(is_num($t))
{
translate([$t20,0,0])square(1);
}
else
{
for(t=[0:0.1:1])
translate([t20,0,0])square(1);
}
but if animation is not started yet, $t is already 0
even worse, if animation is stopped, $t stays at the last value
(OpenSCAD version 2021.01)
I tried something like
if(is_num($t))
{
translate([$t*20,0,0])square(1);
}
else
{
for(t=[0:0.1:1])
translate([t*20,0,0])square(1);
}
but if animation is not started yet, $t is already 0
even worse, if animation is stopped, $t stays at the last value
(OpenSCAD version 2021.01)