How to I script this?

Become a member of the CGSociety

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

 
Thread Tools Display Modes
  1 Week Ago
How to I script this?

Hey all - I'd just like knock up a quick script that selects all verts and welds by 0.01 and then grab all faces and makes them all on smoothing group 1 of any object I have selected

Is this possible?

Thanks guys
__________________
ArtStation
 
  1 Week Ago

for obj in selection where iskindof obj editable_poly do
(
   obj.weldthreshold = 0.01
   polyop.weldvertsbythreshold obj #all
   polyop.setfacesmoothgroup obj #all 1
   update obj
)


for editable meshes it's similar, what you can find in the MXS help
 
reply 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 02:44 AM.


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