Complex UV Layout in Maya
Over the last couple of years UV layout in Maya has changed for the better. In this course we're going to be taking a look at some of those changes as we UV map an entire character
# 1 25-05-2018 , 04:12 AM
Registered User
Join Date: Sep 2017
Posts: 3

maya script to delete hidden objects

Hi all,
Please tell if anyone have some script to delete hidden objects at once..
Thanks

# 2 03-09-2020 , 02:11 PM
Registered User
Join Date: Sep 2020
Posts: 5
select text to view
Code:
import maya.cmds as mc

allTransforms = mc.ls(tr=1)
polyMeshes = mc.filterExpand(allTransforms, sm=12)
toDel = []
for i in polyMeshes:
    if mc.getAttr(i+'.visibility') != True:
        toDel.append(i)
mc.delete(toDel)

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads