Thanks for the codes...
But I can't get it work, I don't know if I do right?
How would you do with the program in the skp-file that I had edited?
it is the "[1,2,3,4,5,6]" part that I don't understand.
this is an version that I used, but the only thing that happen is that all values in the robot is set to 1 ('one').
if getVar('XXX')==1;
[
if((frame%400)>20and(frame%400)<200)
setVar('snurr',0)
else
setVar('snurr',1)
end,
if((frame%400)>130and(frame%400)<200)
setVar('XLLed',0.5)
else
setVar('XLLed',0.2)
end,
if((frame%400)>130and(frame%400)<200)
setVar('SLed',0.9)
elsif((frame%400)>200and(frame%400)<200)
setVar('SLed',1.05)
else
setVar('SLed',0.8)
end,
if((frame%400)>160and(frame%400)<300)
setVar('klo',-1.0)
else
setVar('klo',0.5)
end,
setVar("XXX",0)
]
[(frame/50)%5]; else; 0; end
I even don't know if I'm on the right way.
Thank's for the help!