Toggle navigation
Polycount
News
Forums
Patreon
Challenges
Quarterly Character Art Challenge
Bi-Monthly Environment Art Challenge
Wiki
Moar
Recent
Activity
Badges
Drafts
Store
Sign In
·
Register
Author:
renanfab
Home
›
Search
Topic
Maya - Select all instance objects in a scene.
Author
Date within
1 day
3 days
1 week
2 weeks
1 month
2 months
6 months
1 year
of
Examples: Monday, today, last week, Mar 26, 3/26/04
Search
Search
Maya - Select all instance objects in a scene.
Topic by
sculptn
·
Oct 2017
·
Home
›
Coding, Scripting, Shaders
Just wondering how to - Select all instanced objects in a scene. Thanks
Re: Maya - Select all instance objects in a scene.
Reply by
pasha_sevez
·
Oct 2017
·
Home
›
Coding, Scripting, Shaders
This will select all instances of selected object string $sel[] = `ls -sl`; string $shapes[] = `listRelatives -s $sel[0]`; select `listRelatives -ap $shapes[0]`;
Re: Maya - Select all instance objects in a scene.
Reply by
morrisolmsted
·
Jun 2022
·
Home
›
Coding, Scripting, Shaders
import maya.api.OpenMaya as om def getInstances(): instances = [] iterDag = om.MItDag(om.MItDag.kBreadthFirst) while not iterDag.isDone(): instanced = om.MItDag.isInstanced(iterDag) if instanced: transformFn = om.MFnTransform() transformFn.setObject( iterDag.getPath().transform() ) instances.append(…
3 results