CGTalk > Software Specific Forums > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 06-13-2011, 03:37 PM   #1
JokerMartini
Expert
 
JokerMartini's Avatar
portfolio
John Martini
CG Supervisor, 3D, Maxscript, VFX
Ingenuity Engine
Los Angeles, USA
 
Join Date: Mar 2009
Posts: 1,296
Send a message via AIM to JokerMartini
Copy or Instance modifiers on target obj's

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
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Old 06-13-2011, 03:43 PM   #2
JokerMartini
Expert
 
JokerMartini's Avatar
portfolio
John Martini
CG Supervisor, 3D, Maxscript, VFX
Ingenuity Engine
Los Angeles, USA
 
Join Date: Mar 2009
Posts: 1,296
Send a message via AIM to JokerMartini
Posted to early

Code:
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
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Old 06-13-2011, 03:43 PM   #3
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:41 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.