Animation to scenes plugin
-
Hi.
I'm wondering if there is a plugin which makes a set of scenes (each one is 1 frame) from sketchup animation. I've been looking for it, but nothing met my expectations.
Thanks for help.
-
Could you clarify what you want to do? The way it is written, you are trying to create individual scenes in SketchUp from an animation. If that's what you are trying to do, what is your plan for the images (frames) from the animation? Are you going to just insert the images as images or perhaps as materials? SketchUp won't convert image files into geometry.
If, on the other hand you want to take individual scenes in SketchUp and convert them to an animation, you don't need a plugin. You can just use the animation export already in SketchUp.
-
Like Dave, I'm not entirely sure what you are after. If you want to take a 3rd party animation movie and make SU scenes from it...or even one of your own for which you have lost the original file with the key scenes, then the answer is no, this cannot be done.
If however you have an existing SU file which you have set up with, for instance, half a dozen scenes which will then generate a 30 second movie which obviously has far more than 6 frames...if you want each of those generated frames to be turned into a physical scene in the SU model, you can use the Keyfame Animation script from Regular Polygon. This is capable of producing all the 'tweens' as individual scenes, generating dozens if not hundreds of scenes in the process.
-
Sorry, I probably didn't specify my problem clear enough. I need to put every frame of my Sketchup animation into separate scene (my external render engine doesn't support Sketchup animations/transitions.)
@Alan - I think, a second part of your answer is that, what I had in mind. I'll try Keyframe Animation.
Thank you, for your responce, guys. This board has great level of discussion.
-
Well, how many frames per second do you want? That information is not stored with the scene.
-
ok, here is a one liner that does what you want. It adds a scene for each frame. It does not delete your existing frames, it just adds all these to the end of your existing scenes.
The default as it is written right now is 29.0 frames per second. You can change that - just change the 29.0 at the beginning of the code to whatever frame rate you'd like - 10.0 or 1.0, etc.
fps=29.0;scene_name="f_00000000";fps=fps.to_f;mlt=(1.0/fps);cnt=0.0;pa=Sketchup.active_model.pages;t=pa.slideshow_time;(fps*t).to_i.times{|e|pa.show_frame_at(cnt);pa.add scene_name;scene_name.next!;cnt=cnt+mlt;}
There you go.
EDIT: Forgot to mention how to use it. Just copy and paste that into the "Ruby Console" in SketchUp. (On windows its found on the Window menu in SketchUp). Just open that up and paste the code and hit enter. It should then zip through and add all the scenes.
-
Thanks. I've been looking for months for just that one line of code. Now rendering sketchyphysics with v-ray is one step closer.
Advertisement