Detach with edit poly modifier

Become a member of the CGSociety

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

Thread Tools Display Modes
  02 February 2009
Detach with edit poly modifier

Hi guys!

Iīm new in this forum, and Iīve got some problems with a script. I was searching by the forum and I found a thread with a script to detach a element sub-object of edit.poly modifier, but Iīve got some problems yet.

This is the code

 	detached = #()
 	selectedObjs = getCurrentSelection()
 	for obj in selectedObjs do
 		--obj = selection[1]
 		puppet = undefined
 		max modify mode
 		modPanel.setCurrentObject obj.modifiers[#Puppet]
 		max select all
 		nameParts = filterString "_"
 		puppetName = substituteString nameParts[3] "puppet" 
 		--obj.modifiers[#Puppet].ButtonOp #DetachFace
 		obj.modifiers[#Puppet].DetachToObject puppetName
 			puppet = execute ("$" + puppetName)
 			print puppet
 			append detached puppet
 	print detached
 	select detached

I need detach the element of edit poly, introduce it in an array, and move the pivot of these news object to 0,0,0 position.

But when I evaluate the script, detach the object, and the script delete all modifiers of the bone ( the edit modifier it is in a bone ), and I donīt no why.

I was searching a solution too for move the pivot of the object detached, because when I detach the object, catch the properties of the bone, and a bone you canīt move the pivot. I think need attach the new element detached to box converted in a edit poly ( for example) and delete the box in subobject mode.

If anybody have got any idea, o can help me, I will be grateful.

Thanks you in advance people!!
  02 February 2009
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
Society of Digital Artists

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

All times are GMT. The time now is 12:03 PM.

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