Amazing!! I will dive right into it! Thank you so much for your patience, Dan. I will update my results here (if I make it that far
Posts
-
RE: Export animation with Ruby
-
RE: Export animation with Ruby
@unknownuser said:
.. say create a nifty toolbar button?
The timeconsuming aspect is not initialising the export, but the 3 min rendering...
@unknownuser said:
Then you have to use the Animation class, move the camera yourself between keyframes (scene pages,) and use view.write_image() to write out frame files to a directory.
Ok that sounds promising... So I use the Animation class to recreate the filmsequence, and view.wirte_image() to render the "frames" in for the film. Two questions about that, and I will bug you no more!
-
will the images be rendered in the current "SU-Style" active, or how does that work?
-
in the end would I be left with a huge amount of images in with consecutive numbers, or is there a way to "group" them (eg. A-01, A-02, A-03 and then B-01, B-02 etc for the different transitions).
-
-
RE: Export animation with Ruby
Hello Dan. Thanks for your tipps! I'll def. try them out. But are you saying there is no way to export movie files out of sketchup via ruby? I find that unbelievable!
Regards,
Nils
-
RE: Export animation with Ruby
Hey Jim. The problem with File > Export > Animation ist that, with n scnenes, I have to export n(n-1) animations one by one. So with 17 Scenes I have to export 17*16 Animations. Each animation taking about 3 minutes to render I'm sitting 13.6 hours at the PC. If, after a while I decide to make some changes in the model, I can do the whole session again.
Hey Dan: no I actually did copy one scene (aka page) in between every other page. So I set up the scenes likes this: 1 - 2 - 1 - 3 - 1 - 4 - 1 - 2 - 3 - 2 ect ...
The problem is, I either have to render everything at once and chop it up or render one animation at a time. Or am I missing something??
-
Export animation with Ruby
Hello Folk,
I'm frantically searching for a solution to my problem, and I'm turning to ruby scripts as a last resource. I hope someone can help!
My situation: I've got a bunch of scences, and I need to export all the animations from every given scene to every other scene. So 1 --> 2, 2 --> 1, 1 --> 3, 3 --1 leaving me to export n*(n-1) one by one.
I've looked over the net for a plugin/ruby script that might solve this problem. Havent found one. Now I'm looking for a way to program the script myself, but all I've found is the class "write_image" (https://developers.google.com/sketchup/docs/ourdoc/view?hl=de#write_image) which will not really help me, since stitching all the images together in the end will not save me any time.
So the question: is there a ruby command for "export animation from scene x to scene y"?
or
is there a plugin/script that might solve my problem?
Thanks for any help in advance.
Nils