Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
Implementing Script Problem
-
I need a script like
if frame==350 then run script [1,5,3,9,2,3,1,0][(frame/50)%50];end;Anyone know the solution?
-
if frame==349;[1,5,3,9,2,3,1,0][(frame/50)%8];endThat should do it. frame==350 does not work for some reason.
-
Hmm actually it doesn't work not sure why though it should.
-
there that works
if frame>=350;[1,5,3,9,2,3,1,0][(frame/50)%8];end -
I don't know exactly why it doesn't work, it's probably just trying to do the action ON the frame 350/ 349, but here's how to make it work:
... Put this in the joint controller field
getVar("whats")*[1,5,3,9,2,3,1,0][(frame/50)%8]... And this in any onTick box
if frame==350 then setVar("whats",1);end;...Oh, Phy got to it first

and his doesn't need an onTick field
-
THANKS A LOT!
-
Thanks everyone, i used your help on this model
http://sketchup.google.com/3dwarehouse/details?mid=3459b385de291d695e28caa3b26a73fd
Advertisement