Digital humans the art of the digital double
Ever wanted to know how digital doubles are created in the movie industry? This course will give you an insight into how it's done.
# 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