Simply Maya User Community

Simply Maya User Community (
-   Programming (
-   -   Selecting contents of multiple subfolders in outliner (

yanalin 29-01-2020 05:09 PM

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.

Jackkd88 03-09-2020 10:15 AM

import maya.cmds as mc

allTransforms =
polyMeshes = mc.filterExpand(allTransforms, sm=12)

All times are GMT. The time now is 03:05 PM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Simply Maya 2018