SketchUcation Premium Membership

 

 

[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
Please, register (free) to access all the attachments on the forums.
Whaat
 
Posts: 966
Joined: Wed Nov 14, 2007 9:51 pm
Location: Saskatchewan, Canada
Name: Dale Martens
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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 :) )
remus
 
Posts: 8055
Joined: Fri Nov 30, 2007 8:48 am
Location: UK
Name: 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.
Spence
User avatar
spence
Premium Member
Premium Member
 
Posts: 255
Joined: Sun Nov 18, 2007 5:55 pm
Location: Utah, USA
Name: Spence

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:
princedragoncok
 
Posts: 200
Joined: Thu May 08, 2008 1:06 am
Location: Ireland & N. Ireland

Re: [Plugin] Smoothstep Animation

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

very good!
thank you , Whaat. :thumb:
bianhai
Banned
 
Posts: 191
Joined: Fri Nov 30, 2007 3:05 pm
Location: Shanghai China
Name: Brian

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.
My site

Quod gratis asseritur, gratis negatur.
User avatar
solo
Global Moderator
 
Posts: 10750
Joined: Mon Nov 12, 2007 1:46 pm
Location: Dallas, Texas
Name: Pete Stoppel
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

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
La Connaissance n'a de valeur que partagée
MALAISE
 
Posts: 620
Joined: Sun Apr 20, 2008 1:23 pm
Location: Cergy Pontoise FRANCE
Name: Pierre

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
matt77
 
Posts: 32
Joined: Wed Nov 21, 2007 3:04 pm

Re: [Plugin] Smoothstep Animation

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

What is the file format of images exported?
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10049
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

Re: [Plugin] Smoothstep Animation

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

Either Jpeg or PNG..
matt77
 
Posts: 32
Joined: Wed Nov 21, 2007 3:04 pm

Re: [Plugin] Smoothstep Animation

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

Whaat,

Thank you so very much,

Ben
Ben Ritter
 
Posts: 353
Joined: Wed Nov 14, 2007 4:55 pm
Location: Malta, Illinois

Re: [Plugin] Smoothstep Animation

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

How do you set all scene delays to 0.0 seconds? :?
User avatar
jcdb
Premium Member
Premium Member
 
Posts: 63
Joined: Tue May 13, 2008 1:36 am
Location: Austin, Texas
Name: jcdb
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

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.
Spence
User avatar
spence
Premium Member
Premium Member
 
Posts: 255
Joined: Sun Nov 18, 2007 5:55 pm
Location: Utah, USA
Name: Spence

Re: [Plugin] Smoothstep Animation

Postby modelhead » Tue Oct 07, 2008 5:35 pm

Thanks Whaat...much needed!!
modelhead
 

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?
User avatar
Pixero
Premium Member
Premium Member
 
Posts: 1285
Joined: Wed Nov 14, 2007 2:58 pm
Location: Halmstad, Sweden
Name: Jan Sandström
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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:
User avatar
jcdb
Premium Member
Premium Member
 
Posts: 63
Joined: Tue May 13, 2008 1:36 am
Location: Austin, Texas
Name: jcdb
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

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.
Whaat
 
Posts: 966
Joined: Wed Nov 14, 2007 9:51 pm
Location: Saskatchewan, Canada
Name: Dale Martens
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Smoothstep Animation

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

Thanks again, Whaat! :berserk:
Jon
KT Team member
Jon
 
Posts: 269
Joined: Fri Nov 16, 2007 12:56 pm
Location: Ontario, Canada

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... :(
RickW
 
Posts: 770
Joined: Fri Nov 16, 2007 6:38 am
Location: Wichita, KS
Name: Rick Wilson

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.
User avatar
Pixero
Premium Member
Premium Member
 
Posts: 1285
Joined: Wed Nov 14, 2007 2:58 pm
Location: Halmstad, Sweden
Name: Jan Sandström
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Smoothstep Animation

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

Thanks from me to Whaat, very much needed script !
greetings erikB
User avatar
erikB
 
Posts: 84
Joined: Mon Dec 03, 2007 5:22 pm
Location: Belgium
Name: Erik Bosquet

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:
kwistenbiebel
 
Posts: 2668
Joined: Thu Nov 22, 2007 6:13 pm

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...
Frenglish at its best !
My scripts
Matt666
 
Posts: 829
Joined: Wed Dec 05, 2007 8:38 am
Location: 48.1184, -1.675
Name: Matt

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?
User avatar
Pixero
Premium Member
Premium Member
 
Posts: 1285
Joined: Wed Nov 14, 2007 2:58 pm
Location: Halmstad, Sweden
Name: Jan Sandström
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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?
kwistenbiebel
 
Posts: 2668
Joined: Thu Nov 22, 2007 6:13 pm

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.
Whaat
 
Posts: 966
Joined: Wed Nov 14, 2007 9:51 pm
Location: Saskatchewan, Canada
Name: Dale Martens
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

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)
kwistenbiebel
 
Posts: 2668
Joined: Thu Nov 22, 2007 6:13 pm

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
steelers05
 
Posts: 387
Joined: Wed Jun 04, 2008 4:23 pm

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!
Dan
 
Posts: 33
Joined: Mon Nov 19, 2007 7:54 pm

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?
Fletch
Twilight Render
 
Posts: 760
Joined: Wed Nov 14, 2007 1:02 am
Location: Milwaukee, WI USA / Rovinj, Croatia

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Not a Premium Member yet? Check out the great time-limited deal we are offering.

Ad Machine
Robot
 
Posts: 2012

Next

Return to Plugins

Who is online

Users browsing this forum: Ahamd, dagvin, Google Feedfetcher, Javadevil, KLR27, PMsarto, radiacor, vicspa and 13 guests