SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

SM Forums / Maya Questions / Programming / Selecting contents of multiple subfolders in outliner

Programming MEL Scripts, Expressions & Programming Related Topics

Join the conversation. Reply to post
Thread Tools
29-01-2020, 05:09 PM   #1
Registered User
Join Date: Jan 2020
Posts: 1
Selecting contents of multiple subfolders in outliner
I want to select the contents of multiple folders in maya without actually selecting the folders themselves. That is to say, if I have group1 with mesh1 and mesh2 inside and group2 with mesh3 and mesh4 inside, I only want to select mesh1-4 without selecting group 1 and 2. I couldn't find a way to do it and I don't know how to code, so any help would be appreciated. I guess it's also quite a simple code, so if someone is feeling extra kind today, maybe they can save me hours of manual clicking. Thanks in advance.
  Reply with quote
03-09-2020, 10:15 AM   #2
Registered User
Join Date: Sep 2020
Posts: 5
import maya.cmds as mc

allTransforms =
polyMeshes = mc.filterExpand(allTransforms, sm=12)
  Reply with quote

code , outliner , selecting , subfolders

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Problem - Unable to change attributes for multiple objects anthonysw3 Maya Technical Issues 4 04-12-2010 11:56 PM
Selecting multiple objects kinddoggofwar Maya Basics & Newbie Lounge 2 05-04-2007 06:34 PM
Selecting Multiple Control Vertex Archonius Maya Basics & Newbie Lounge 3 17-02-2006 04:59 PM
selecting overlapping verts from multiple objects rendfox Maya Modeling 3 22-10-2005 06:55 PM
Outliner question diamondx Maya Basics & Newbie Lounge 1 09-10-2004 04:25 PM