Clone color to red
Hi i am having trouble making all the cloned objects red it only clones in random colors but i need it to only clone in red any help would be appreciated thanks..
script --->
rollout roCloner "Ball move"
(
fn CloneAndSelect objArray type = copy objArray
spinner objCount "Amount:" range:[1,100,2] type:#integer align:#left width:90 across:2
button btnDO "Clone" width:50 align:#right
on btndo pressed do
(
Sphere radius:0.552408 smooth:on segs:32 chop:0 slice:off sliceFrom:0 sliceTo:0 mapcoords:on recenter:off pos:[0.0480839,0.0557169,0] isSelected:on
objs = selection as array
if objs.count > 0 do
(
num = objCount.value
type = copy objArray
objArray = #()
for c = 1 to num do (
CloneAndSelect objs type
move $ [1.4275,0,0]
)
)
delete objs
global cloneCollection = objArray
)
)
createDialog roCloner

Comments
assign wirecolor to selected
assign wirecolor to selected at once:
selection.wirecolor = redmy recent MAXScripts RSS (archive here)
Thanks for the reply
Thanks for the reply Anubis.
I tried that and i cant get it to work can you show me which part of the script to add it to.
it just changes the main object the clones are still random colors.
1st, am not sure about the
1st, am not sure about the main idea of the script.
You create a Sphere with isSelected:on and then grab selection as array. So, if you need to copy just single object multiple times, you can assign your new Sphere to variable and...
my recent MAXScripts RSS (archive here)
Thanks for the help Anubis by
Thanks for the help Anubis by far this forums needs you :)
1 last question regarding this action..
Now instead of having the obj = Sphere Radius how can i have it do the same action for merged objects like
mergemaxfile "C:\\Program Files\\Autodesk\\PS1.max" #("RoundD1","SP1") #select #MergeDups
I tried to make obj = selection it cloned fine but after clone it stopped working when it got to Position of the objects and color thanks !!!
thanks
ok, here is:
my recent MAXScripts RSS (archive here)