Hi all,
This community has really helped me out quite a bit and I have just one more teency question:
I have a square that I want to be presented in either a variable x location (-.5,-.3,0,0,.3,.5)
, with a static y position (0)
, or a changing position.
The changing position is defined by a variation of .48*sin(n*pi*.9*t)
where n
changes to effect the speed of the square.
I currently have a .csv setup as such:
sq_posx | sq_posy |
---|---|
-.5 | 0 |
-.3 | 0 |
0 | 0 |
.3 | 0 |
.5 | 0 |
.48sin(0pi*.9*t) | 0 |
.48sin(1.5pi*.9*t) | 0 |
.48sin(3pi*.9*t) | 0 |
.48sin(4.5pi*.9*t) | 0 |
In builder I have the position set to [sq_posx,sq_posy] but the experiment crashes as soon as it runs. I have tried to put a code component above the shape that consists of print(sq_posx)
, to no avail as nothing prints. I have also tried to put an eval()
in front of sq_posx
with no luck either.
Any help would be appreciated, thank you!