[Closed] CgTalk Maxscript Challenge 011: "Circular Array Tool"
CgTalk Maxscript Challenge 011: “Circular Array Tool”
DESCRIPTION: Create a tool that allows a user to create a circle of clones from a selected object. Allow adjustments for radius, axis and number of items
INTERMEDIATE SCRIPTERS: Add options for arraying the clones along two or even three axi at the same time to achieve diagonal or undulating circles of clones.
ADVANCED SCRIPTERS: Add the option of a spherical cloning, rather than a circle, and to have more than one radius of clones. See if you can get the tool to clone in a spiral. If you have time, add another option of cloning along a spline.
RULES:
[ul]
[li]Code from scratch. Try not to use pre-exisitng functions or plugins.[/li][li]Show your script references, if any (eg. Looking at another script to assist you).[/li][li]You are encouraged to ask for help where needed, but try to do it on your own. The maxscript reference is an invaluable resource.[/li][li]Post your final script inside [/li]“`
tags (located on your posting toolbar).
[li]Post all code into THIS thread.[/li][li]Post the max version you coded in, plus any maxscript extensions you used. (Thanks galagast!)[/li][li]Try to finish the challenge in a week. There is no definite time limit.[/li][/ul]NOTES: A little more difficult, but only for the maths. It seems that you cannot use the cloning function in an UNDO envelope, because it crashes! Be careful!
I have some ideas to extend it but here’s what I’ve got so far… I’ve attached the script instead of posting it in this thread because it’s a bit long.
Martijn
Great work Martijn! Good idea on the preview button too! I’ll post my efforts later today.
Magicm I get an error when I run your scrit . ” – type error:Call needs function or class,got:undefined”
edit , sorry was me … it works fine
Nice work!
I can’t see the preview
some possible improvements:
currently the dialog can be created more than once.
If Copies is set to 1 – no copy is created.
If selecting a node for origin – indicate some where which node was choosen?
But this nitpicking.
Georg
I really like what you guys did!!
I would really love to see something like this in an scripted modifier or a simple object. This would allow us to animate the array, as with creating an array is mostly not so interresting as to control animation… animatable array tools allows some funky designgraphik like animations… I would love a tool that would allow that… there is such a modifier from itoo software, but I find it a bit limited… so if someone has some sparetime… don’t know if a scripted mod would allow you to do it…
Well, great work!
-Johan
Hey folks!
There was a minor bug in my script…wonder that no one noticed…:shrug:
Anyway here is fixed code:
two posts below final is code
hey guys, i just tried your scripts and i have to say that your challenges/scripts are awesome. It is a real source of motivation for learning maxscript. i’m at the very beginning right now but when i’ll know a bit more about maxscript (and have some more time…) i will try to participate.
->PatS: your script is really amazing and works like a charm