Anim8or Community

General Category => ASL Scripts => Topic started by: Steve on June 05, 2008, 03:07:09 am

Title: New ASL Functions in v0.97b update
Post by: Steve on June 05, 2008, 03:07:09 am
There are some new functions in the v0.97b update that might be useful:

1. shape.GetNumEdges(), etc.

2. write to the console: open("$console", "w");

3. mesh.DeletePoint(), etc.

4. functions to access to attributes,

5. Spline access functions.  You can make cool looking chains and ropes that follow the shape of a spline!

(http://www.anim8or.com/scripts/spline_test.jpg)

Title: Re: New ASL Functions in v0.97b update
Post by: CobraSpectre on June 05, 2008, 10:15:58 pm
Does the console write only work from an export script?
Title: Re: New ASL Functions in v0.97b update
Post by: hihosilver on June 05, 2008, 11:10:47 pm
That spline access function looks awesome!  I definitely look forward to some scripts for that one!  It could make things like chains much easier.  Congratulations Steve, this is looking wonderful.
Title: Re: New ASL Functions in v0.97b update
Post by: Steve on June 06, 2008, 01:22:17 am
The console write works for export scripts and command scripts (including those with a .txt suffix that you run by selecting the file).  No IO works for parameteric scripts - but I could make an exception for the console.  File IO would slow parameteric scripts down a lot because they are run over and over as you drag the mouse.

hihosilver - I'm glad you like the spline funstions.  DoctorStopMo ought to as well judging from his post.  That's what inspired me to add the spline stuff :)