Exporting frames script

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
wizaerd
Posts: 415
Joined: Fri Aug 25, 2006 11:08 am
Location: Gilbert, AZ

Exporting frames script

Post by wizaerd »

I was wondering if it'd be possible, and if so if somebody would care to tackle it for a script that exported an animation to PNG images, but named based on markers on the timeline? For example, imagine I have a timeline with a single cycle of walking, a single cycle of jumping, a single cycle of a punch or kick. Upon exporting as images, if the resulting images could be named walk01, walk02, jump01, jump02, attack01, attack02, etc...?
User avatar
heyvern
Posts: 7045
Joined: Thu Sep 01, 2005 8:49 pm

Re: Exporting frames script

Post by heyvern »

I don't think it would work because there are no markers in the program. The script wouldn't know where to stop and start or change the names of the renders. I also don't think it's possible to override the naming of frames when exporting. I think you can "render" from the script interface I am just not sure you can "export" and if you could, set a different name or restart the numbering of frames. Even If you could it would probably seriously slow down render times and also conflict with multi processor processing. You would be programmatically rendering each frame one at a time. This is all just theory.

You could just save out multiple AS files with different names and batch export. It would do the same thing as you describe and it works now without a script and is fast and uses all the processors. You can even control the folders each file renders to.

My basis for writing scripts is ROI (return on investment). If the script is incredibly difficult and complicated, and doesn't add new functionality it's not worth the effort. Since this idea for a script can already be done very easily with the current features there's not much motivation to script it. The end result would probably be less effective and take more time than doing it with the batch rendering.
Post Reply