Welcome, Guest. Please Login or Register.
eccoMAGIC Forums
12/26/24 at 04:17:40
News: If you outline, checkout the new outlineZOOM extension. Amazing stuff to instantly bring your ideas into focus.
Home Help Search Login Register


Pages: 1
Send Topic Print
  Rating
Rate:
Rating:
Rating: 0.00
Votes: 0

5
4
3
2
1












5
4
3
2
1


1


2


3


4


5


6


7


8


9


10

Parsing, Math Function Using LUA (Popularity: 7797 )
MichaelM
EccoMagic Apprentice
*


I Love Ecco!

Posts: 4
Show the link to this post Parsing, Math Function Using LUA
09/13/09 at 17:22:28
 
Hi, I am an extreme newbie at using LUA with eccoext. Could some one please provide me with the LUA rule code I would need to:
 
1) select the final 4 characters of an item in a particular folder
2) convert those 4 characters into a number, e.g., from "1234" to 1234
3) perform a mod function on that number, e.g., for 13/4 the mod or remainder would be 1  
4) place the result in a particular folder
 
As simple as this coding exercise must be for an experienced eccoext/LUAer, it would prove very useful to us beginners.
 
Thank you very much,
MichaelM
Back to top
 
 
  IP Logged
Admin
Administrator
*****


I love Ecco!

Posts: 134
Show the link to this post Re: Parsing, Math Function Using LUA
Reply #1 - 09/17/09 at 16:20:45
 

 
have you looked at any LUA programming guides ?
 
Back to top
 
 

The Administrator.
WWW   IP Logged
MichaelM
EccoMagic Apprentice
*


I Love Ecco!

Posts: 4
Show the link to this post Re: Parsing, Math Function Using LUA
Reply #2 - 09/18/09 at 00:14:25
 
I am currently involved in a large project and do not have time to learn a new programming language from scratch. I'm not asking for a massive amount of free programming--just a tiny bit of code that I can modify and learn from. Thanks.
Back to top
 
 
  IP Logged
Admin
Administrator
*****


I love Ecco!

Posts: 134
Show the link to this post Re: Parsing, Math Function Using LUA
Reply #3 - 12/05/09 at 13:30:04
 

You can code in perl, Python, JScript, or VBasic as well as LUA.   Ie.,  if you know any of these programming languages they all work in the extension if you tell the rule which language script you are using.
 
 
also,  you can do math & set folder values without any programming,  ie., directly as a folder assignment value.
 
 
hope helpful.
Back to top
 
 

The Administrator.
WWW   IP Logged
Pages: 1
Send Topic Print