Copy or Instance modifiers on target obj's

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 06 June 2011   #1
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 June 2011   #2
Posted to early


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 June 2011   #3
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



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 05:15 AM.


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