[Plugin] Smoothstep Animation

[Plugin] Smoothstep Animation

Postby Whaat » Mon Oct 06, 2008 7:18 pm

Sorry for the delay in releasing this plugin. I've been on holidays and working on other projects. This plugin allows you to smooth out the jerky scene transitions in a SketchUp scene-tab animation. It is not intended for object animation, only native SkechUp scene animation. It cannot be used as-is to export to a rendering engine.

Usage:
1) Copy 'smoothStepAnim.rb' to 'Plugins' folder as usual.
2) Notice two new self-explanatory items under 'Plugins' menu
3) Plugin can export single frames only. The images must be joined into a movie format using other software (eg. VirtualDub)

Issues:
- All scene delays must be set to 0.0 seconds
- likely more lurking...I have not tested very thoroughly. Please post bugs.

Enjoy!

Dale
9

Whaat 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Smoothstep Animation

Postby remus » Mon Oct 06, 2008 7:23 pm

Cheers,another interesting plugin form the great ideas factory (better known as you :) )
0

remus 
 

Re: [Plugin] Smoothstep Animation

Postby spence » Mon Oct 06, 2008 7:36 pm

Nice! I did a really quick test and it seems to work pretty good. I used Quicktime to create the image sequence.
0
Spence
User avatar
spence 
Premium Member
Premium Member
 

Re: [Plugin] Smoothstep Animation

Postby princedragoncok » Tue Oct 07, 2008 12:16 am

Been looking forward to this :ecstatic: Will give it a test tomorrow. Thank you Whaat :thumb:
0

princedragoncok 
 

Re: [Plugin] Smoothstep Animation

Postby bianhai » Tue Oct 07, 2008 1:05 am

very good!
thank you , Whaat. :thumb:
0

bianhai 
Banned
 

Re: [Plugin] Smoothstep Animation

Postby solo » Tue Oct 07, 2008 1:08 am

Whaat,

Thanks mate, that works great, I may now try GSU animation again, as I stopped using it for the exact reason you felt the need to create this great plugin.
1
If you see a toilet in your dreams do not use it.
User avatar
solo 
Global Moderator
 

Re: [Plugin] Smoothstep Animation

Postby MALAISE » Tue Oct 07, 2008 9:10 am

Thanks a lot, Whaat. I've just made simple test, pretty well smooth transitions. :thumb: :thumb:
MALAISE
0
La Connaissance n'a de valeur que partagée
User avatar
MALAISE 
 

Re: [Plugin] Smoothstep Animation

Postby matt77 » Tue Oct 07, 2008 9:49 am

thank you so much!!

this has been much needed in SU.


Many,Many Thanks

Matt
0

matt77 
 

Re: [Plugin] Smoothstep Animation

Postby pilou » Tue Oct 07, 2008 10:48 am

What is the file format of images exported?
0
Frenchy Pilou
Is beautiful that please without concept!
My Little site :)
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Smoothstep Animation

Postby matt77 » Tue Oct 07, 2008 11:26 am

Either Jpeg or PNG..
0

matt77 
 

Re: [Plugin] Smoothstep Animation

Postby Ben Ritter » Tue Oct 07, 2008 1:55 pm

Whaat,

Thank you so very much,

Ben
0

Ben Ritter 
 

Re: [Plugin] Smoothstep Animation

Postby jcdb » Tue Oct 07, 2008 3:29 pm

How do you set all scene delays to 0.0 seconds? :?
0
User avatar
jcdb 
Premium Member
Premium Member
 

Re: [Plugin] Smoothstep Animation

Postby spence » Tue Oct 07, 2008 4:51 pm

jcdb,

Go to Model Info, under window, and then Animation, scene delay.
0
Spence
User avatar
spence 
Premium Member
Premium Member
 

Re: [Plugin] Smoothstep Animation

Postby Pixero » Tue Oct 07, 2008 6:05 pm

Thanks for a great script. :D

Would it be possible to add an attribute to all the existing scenes in the model that they are "keyframes" and then add scenes for every frame in the animation with an attibute that they are "inbetweens" and add scene transition times according to your smoothstep script.
The script should then be able to delete all the "inbetweens" if you want to change the animation but leave the "keyframes" intact.
I believe this would make it work with external renderers.
What do you think, is it doable?
1
User avatar
Pixero 
 

Re: [Plugin] Smoothstep Animation

Postby jcdb » Tue Oct 07, 2008 7:12 pm

spence wrote:jcdb,

Go to Model Info, under window, and then Animation, scene delay.


Thanks spence :thumb:
0
User avatar
jcdb 
Premium Member
Premium Member
 

Re: [Plugin] Smoothstep Animation

Postby Whaat » Tue Oct 07, 2008 7:24 pm

Pixero wrote:Thanks for a great script. :D

Would it be possible to add an attribute to all the existing scenes in the model that they are "keyframes" and then add scenes for every frame in the animation with an attibute that they are "inbetweens" and add scene transition times according to your smoothstep script.
The script should then be able to delete all the "inbetweens" if you want to change the animation but leave the "keyframes" intact.
I believe this would make it work with external renderers.
What do you think, is it doable?

That's a cool idea and definitely doable! :thumb: I'll do some experimenting.
0

Whaat 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Smoothstep Animation

Postby Jon » Tue Oct 07, 2008 9:13 pm

Thanks again, Whaat! :berserk:
0
Jon
KT Team member

Jon 
 

Re: [Plugin] Smoothstep Animation

Postby RickW » Tue Oct 07, 2008 10:30 pm

Whaat wrote:
Pixero wrote:Thanks for a great script. :D

Would it be possible to add an attribute to all the existing scenes in the model that they are "keyframes" and then add scenes for every frame in the animation with an attibute that they are "inbetweens" and add scene transition times according to your smoothstep script.
The script should then be able to delete all the "inbetweens" if you want to change the animation but leave the "keyframes" intact.
I believe this would make it work with external renderers.
What do you think, is it doable?

That's a cool idea and definitely doable! :thumb: I'll do some experimenting.

Unfortunately, there's currently no way to delete pages/scenes in ruby... :(
0

RickW 
 

Re: [Plugin] Smoothstep Animation

Postby Pixero » Wed Oct 08, 2008 8:17 am

Here's what Todd said at the Google Group:

Sketchup.active_model.entities.erase_entities(page) should work, but
it hangs SketchUp. It's a known and reported bug.


To get around this bug, do this:


First, make the page you want to delete the active page. Then, issue
this from Ruby:


Sketchup.send_action "pageDelete:"



That means it can be done even if its a work around.

If not we could save the model prior to using the script and then saving it after, under another name or with a "_anim" after.
Not the best way but it would still mean we could render a smooth animation.
0
User avatar
Pixero 
 

Re: [Plugin] Smoothstep Animation

Postby erikB » Wed Oct 08, 2008 8:47 am

Thanks from me to Whaat, very much needed script !
greetings erikB
0
User avatar
erikB 
 

Re: [Plugin] Smoothstep Animation

Postby kwistenbiebel » Wed Oct 08, 2008 9:34 am

Thank you Whaat!
I hope you get the 'to scene tabs' method working, so we can use external render software on the animation.

Great job! :thumb:
0

kwistenbiebel 
 

Re: [Plugin] Smoothstep Animation

Postby Matt666 » Wed Oct 08, 2008 12:44 pm

Pixero wrote:Sketchup.send_action "pageDelete:"

A confirmation message box opens every attempt to delete a scene...
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Smoothstep Animation

Postby Pixero » Wed Oct 08, 2008 12:54 pm

Well...lets hope Whaat finds a trick to fool SU to delete the scenes without SU knowing what happened... :roll:

Is
Code: Select all
entities.clear!
not working either?
0
User avatar
Pixero 
 

Re: [Plugin] Smoothstep Animation

Postby kwistenbiebel » Sun Feb 08, 2009 5:04 am

Hi Whaat,

Would it be a sh*tload of work for you to have this plugin make default scene tabs after smoothing the animation ? (needed for render engines)
The current method (cameralines.rb,F-Spline bezier,Flightpath (or SU-animate) is kind of tedious.
Your smoothstep animation ruby would be an easier 'out of the box solution' when it can create a scene tab animation.

If it is a lot of work...maybe commercial?
0

kwistenbiebel 
 

Re: [Plugin] Smoothstep Animation

Postby Whaat » Sun Feb 08, 2009 5:07 am

kwistenbiebel wrote:Hi Whaat,

Would it be a sh*tload of work for you to have this plugin make default scene tabs after smoothing the animation ? (needed for render engines)
The current method (cameralines.rb,F-Spline bezier,Flightpath (or SU-animate) is kind of tedious.
Your smoothstep animation ruby would be an easier 'out of the box solution' when it can create a scene tab animation.

If it is a lot of work...maybe commercial?

I am curious. Which render engines are able to automatically render all scene tabs? I assume you are not manually rendering each scene tab when you are creating these types of animations.
0

Whaat 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Smoothstep Animation

Postby kwistenbiebel » Sun Feb 08, 2009 5:10 am

Vray and Fryrender can render a scene tab animation.
For instance, if you have 1 scene tab per animation frame, you set the SU transition time to 1 second.
In the Vray/Fry panel, you set 1 fps.
That way, Vray/Fry will render each scene tab automatically when hitting the render button.

I thought Skindigo can do this as well? (confused)
0

kwistenbiebel 
 

Re: [Plugin] Smoothstep Animation

Postby steelers05 » Mon Feb 09, 2009 8:05 pm

yeah im with biebel on this one.. that would be great if you could make something like that
0

steelers05 
 

Re: [Plugin] Smoothstep Animation

Postby Dan » Mon Feb 09, 2009 8:16 pm

Thanks for yet another great plugin, Whaat!
Me too I did a very quick test and all seems to be ok.
I have to ask you a little change to the script, if possible: can you make it to number the exported bitmaps like "name00001.jpg", "name00002.jpg", instead of "name0.jpg", "name1.jpg", etc. to make the conversion to avi program to read them in the right order?

Thanks again!
0

Dan 
 

Re: [Plugin] Smoothstep Animation

Postby Fletch » Wed Feb 11, 2009 12:15 am

I second KB and Steeler's request, Whaat... you still thinking about this?
0

Fletch 
Twilight Render
 

Re: [Plugin] Smoothstep Animation

Postby zeal » Wed Feb 11, 2009 12:24 am

Thank you for sharing :ecstatic:
0

zeal 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: bakti, siddhi dhindale and 10 guests