Anim8or Community

General Category => ASL Scripts => Topic started by: NickE on July 30, 2008, 03:45:00 pm

Title: File Read Function(s)
Post by: NickE on July 30, 2008, 03:45:00 pm
Steve,
If I could beg for a single ASL update for the next preview, it would be file.read member function(s).

Here's why:

It would be a work-around for most of the other items on the scripting wish-list. 
(1) One could read and write Anim8or project files allowing one to do particle animation, fluid dynamics, and physics by generating objects and morph targets and scene object placement and controller values, and so much more!
(2) One could simulate parameter passing between scripts
(3) Custom import filters

Once a file.read ability exists, the only thing needed to have robust access to all of Anim8or's modes would be the ability to trigger another script's execution from within a script.  (more begging here)  Even the simplest implementation would be sufficient: completely terminate the original script and begin execution of the requested script.  The file read/write functions can be used to simulate user defined functions ability.

Those two additional functions - file.read and script.execute - would open the door to the development of libraries of script functions like physics, walk sequences, mouth movement, lip synch, etc.

Thank you!
Title: Re: File Read Function(s)
Post by: Steve on August 09, 2008, 12:03:48 am
File reads are on the list, both binary and text, as are functions, but not for the next drop.
Title: Re: File Read Function(s)
Post by: D.J.Peters on June 23, 2009, 10:08:47 am
What is the curent state of file.open("file.txt","r") mode ?

Joshy
Title: Re: File Read Function(s)
Post by: D.J.Peters on March 15, 2018, 01:45:53 am
Hello Steve,
it's 9 year ago is file reading posible now ?

have good time.

Joshy
Title: Re: File Read Function(s)
Post by: Steve on March 15, 2018, 01:54:28 am
D.J.Peters: Are you clairvoyant??? You're asking this today after 9 years?
It happens that I'm just putting the finishing touches on a prototype build with text file input working. I should have it posted in a day or so (http://www.anim8or.com/em/johnar/smile.gif) (http://www.anim8or.com/em/johnar/smile.gif) (http://www.anim8or.com/em/johnar/smile.gif)
Title: Re: File Read Function(s)
Post by: nemyax on March 15, 2018, 01:45:54 pm
Will ASL allow function definitions in the new prototype?
Title: Re: File Read Function(s)
Post by: Claude on March 15, 2018, 02:32:56 pm
User defined functions are available.
http://www.anim8or.com/smf/index.php/topic,4814.msg35005.html#msg35005

Steve ,the spec still says:
"There is currently no support for user defined functions."
Title: Re: File Read Function(s)
Post by: Steve on March 15, 2018, 04:07:18 pm
Claude: Oops! I need to fix that, too.
Title: Re: File Read Function(s)
Post by: Steve on May 26, 2018, 08:44:01 pm
Just a note to say that text input is available in build build 1321 (http://www.anim8or.com/download/preview/files/animcl1321.zip). See this topic (http://www.anim8or.com/smf/index.php/topic,5705.0.html) for details.