Radial Sort In Line
I'd like to do a radial sort that apply an change on the first object and then increaingly all the way around till i reach the last object.
Check out the attached image to make more sense.
For example: I have an array of sphere and I'd like to change there diffuse color from white to black based on the radial array. Check out the image to make more sense. For the sake of the image i just did it by hand.
Thanks
JokerMartini
Attachment | Size |
---|---|
radialsort.png | 24.87 KB |
Comments
This errors as well for some reason?
this is the error i get
-- Unknown property: "pos" in undefined
-- Error occurred in getCircleObjArrayInOrder(); position: 500; line: 12
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
try this
my recent MAXScripts RSS (archive here)
Its Erroring out
It errors out and says this in the listener:
In the max scene i just have 12 spheres in circular array like in the image attached.
John Martini
Digital Artist
http://www.JokerMartini.com (new site)
You execute the function
You execute the function without argument!
The 2nd (dir) is optinal but the 1st required.
Put your objects to array (for eg):
objs = $Sphere* as array
and use this array as argument:
a1 = getCircleObjArrayInOrder objs
my recent MAXScripts RSS (archive here)