Animated sequences motion using Sketchy physics ruby script
-
Hi,I want to know how to create motion with sketch physics producing an animated sequence.I have been reading tutorials from wikia but the one here about using ruby scripts for motion sequencing does not tell where to type the ruby script.
http://sketchyphysics.wikia.com/wiki/IntermediateIn the beginner tutorial it is mentioned to type the small commands like oscillator(10) in the controller box as mentioned in the link here in beginners tutorials.http://sketchyphysics.wikia.com/wiki/Beginner
There is a blue box further down, labelled 'controller'. This is very, very important, as this is where (for now) all of your script and formulas will go.But I want to use if and else loops and create motion sequences,set the servo values to particular angle etc..Could some experienced person tell me how to do this?
-
most of the intermediate script goes in the ontick field.
-
(I'm the writer of Beginner, and most of intermediate)
Hey there! Phy's right, intermediate script and onwards goes into the multi-line onTick and onTouch fields. onTick is effectively a standard script field, with the script executed every frame, or every few frames, depending on the rate you set. onTouch is executed every frame, or rate frame, while the selected object is hitting another.
The important thing to note is that these fields are only visible with SP3 X, which you can find on the link under the 'What's new' section, on the main page of the wiki. Just install and go!
If by 'motion sequencing' you mean Chris' Knight Game animation system, that's very advanced. You may want to play around with more simple scripts before attempting something like that
Advertisement