Spin View update?

Forum for general SketchUp Ruby topics

Moderators: RickW, todd

Spin View update?

by dschell on Sat Feb 26, 2011 8:51 pm

Hi, this probably seems dumb, but is there a way to slow down or control "spin view"?
i tried "animate2.rb" but it's very old and doesn't work in SU 7.
Thanks so much for any help! -d
dschell
 
Posts: 1
Joined: Sat Feb 26, 2011 8:38 pm

Re: Spin View update?

by todd on Sun Feb 27, 2011 8:55 am

In the animate.rb script, in the nextFrame method, you can add a line to cause Ruby to sleep for a period of time.

As an example, to sleep for (approx) 1/4 second, code

Code: Select all
sleep 0.25


The amount of time you sleep could be arbitrary, or you could calculate how many frames per second you are interested in seeing in the animation and sleep accordingly.
todd
 
Posts: 114
Joined: Mon Dec 15, 2008 7:42 pm


Return to SketchUp Ruby

Who is online

Users browsing this forum: No registered users and 1 guest