Anim8or Community

General Category => ASL Scripts => Topic started by: NickE on February 02, 2015, 03:06:17 pm

Title: ASL Command render() always crashes Anim8or
Post by: NickE on February 02, 2015, 03:06:17 pm
Has anyone ever successfully used the render() command in an ASL script?  I have tried to use it off an on since V0.95, but it always crashes Anim8or.

I like to write scripts to do physics simulations, but these type of scripts only work object mode. (See topic http://www.anim8or.com/smf/index.php/topic,2358.msg25814.html#msg25814 (http://www.anim8or.com/smf/index.php/topic,2358.msg25814.html#msg25814) for tricks required to render.)  It would be nice to be able to render the results of the simulations more easily.  Rendering from object mode is not ideal, but perhaps workable.

Another possibility is an Object Mode ASL command to switch to Scene Mode and render and save a particular frame before continuing:  RenderSceneFrame(int Frame,string Filename)

Any thoughts?
Title: Re: ASL Command render() always crashes Anim8or
Post by: Raxx on February 02, 2015, 07:21:25 pm
Hm, it doesn't crash Anim8or (build 1162) for me, when just running render(); from a .txt file. But it only flashes the render screen and then goes back to the workspace, though the render progress bar keeps going even if I can't see it.

So yeah, it's definitely messed up.

Personally, I'd like to see better ASL functionality in the Scene Editor. Some way to access all of an object's data from within the scene editor (as instances, so that via ASL everything can be loaded and changed on the fly without making permanent changes to the actual object), as well as set values for controllers (who wouldn't want to make their own constraints system when animating with bones?). I could mention lots and lots more than that, but I think/hope Steve is aware of ASL's current limitations.