PDA

View Full Version : Copy or Instance modifiers on target obj's


JokerMartini
06-13-2011, 03:37 PM
I would like to be able to select a reference object and then choose whether I want to copy or instance them onto target objects.

John

JokerMartini
06-13-2011, 03:43 PM
rollout rlTest "test"
(
checkbox modcopy "Copy modifier(s)" checked:true
pickbutton root "Pick root" width:100
pickbutton slave "Pick copy" width:100
radiobuttons copyType labels:#("copy", "instance")

on root picked obj do
(
global roota=obj
)

on slave picked obj do
(
undo on
global slavea=obj
if modcopy.checked do
(
x=roota.modifiers.count+1
while x>1 do
(
instanceMod = roota.modifiers[x-=1]
copyMod = copy instanceMod
case copyType.state of
(
1: (addModifier slavea copyMod)
2: (addModifier slavea instanceMod)
)
)
)
)
)
createDialog rlTest

CGTalk Moderation
06-13-2011, 03:43 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.