Guiniture
06-22-2007, 05:53 PM
Hi,
Im trying to write a script based on combining ideas of cellular automata and lamarkism.
What I am trying to do is create some boxes which are capable of storing 'bits of code' within their custom attributes, I would then like to be able to have a way of compiling the bits of code from various boxes to form an executable command.
That isnt very clear but i will try and give you an example of what i would like to do:
$box01.CA = ($.pos = [0,0,0])
$box02.CA = ($.scale = [50,50,50])
The idea would then be to get all the bits of code and make box01 and box02 move to position [0,0,0] and scale down to 50% of their original size.
Is it possible to do something like this with custom attributes? Also is it possible to store functions, strings or arrays in custom attributes?
Any help anyone could give me would be great!!
Cheers
Im trying to write a script based on combining ideas of cellular automata and lamarkism.
What I am trying to do is create some boxes which are capable of storing 'bits of code' within their custom attributes, I would then like to be able to have a way of compiling the bits of code from various boxes to form an executable command.
That isnt very clear but i will try and give you an example of what i would like to do:
$box01.CA = ($.pos = [0,0,0])
$box02.CA = ($.scale = [50,50,50])
The idea would then be to get all the bits of code and make box01 and box02 move to position [0,0,0] and scale down to 50% of their original size.
Is it possible to do something like this with custom attributes? Also is it possible to store functions, strings or arrays in custom attributes?
Any help anyone could give me would be great!!
Cheers
