Notifications
Clear all

[Closed] Detaching Elements without resetting Normals?

Hallo everyone,

I am currently working with CAD files and everytime I detach an element the normals reset themselves and the shading looks like a mess.
So I am in desperate need of a script that detaches Elements without resetting the normals. Does one already exist or could anyone here give this a try?

Thanks a lot for any help!

ConSeannery

6 Replies

Use this script. (the object has to be an editable poly)

The only way i found is to clone the object and delete the faces

vSourceObj = selection[1]
vClonedObj = copy vSourceObj
vSelection = (polyOp.getFaceSelection vSourceObj)
polyop.deleteFaces vSourceObj vSelection
polyop.deleteFaces vClonedObj -vSelection

1 Reply
(@conseannery)
Joined: 10 months ago

Posts: 0

Thanks Sh4rk! That’s how I’ve been doing it, too. I will try your automated solution tomorrow!

Works great! Only downside is that is somehow keeps the faces selected even back in top level mode. That selection seems to be locked and I have to convert the geometry to an editable poly to get rid of the selection. Other than that, a huge time saver!

vSourceObj = selection[1]
 vClonedObj = copy vSourceObj
 vSelection = (polyOp.getFaceSelection vSourceObj)
 
 polyop.deleteFaces vSourceObj vSelection
 polyop.deleteFaces vClonedObj -vSelection
 
 polyop.setFaceSelection vSourceObj #{}
 polyop.setFaceSelection vClonedObj #{}

Try this one it’ll clear the selection after detaching

Perfect! Thanks a lot!

You’re welcome.