Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Best practice for selecting objects?

Best practice for selecting objects?

Anonymous
Not applicable
315 Views
1 Reply
Message 1 of 2

Best practice for selecting objects?

Anonymous
Not applicable
Im running into some 'more than one object matches name' problems with cmds.select(....) right now and I was wondering what the best practice was for tackling that problem. Usually I would just make sure that the scene was constructed properly but in this case tats out of my hands and i cant ensure that this will always be the case, does anyone have any thoughts on the subject

jon
0 Likes
316 Views
1 Reply
Reply (1)
Message 2 of 2

lee.dunham
Collaborator
Collaborator
unless you know the full path to the objects, next bet is to select all of them.
for example;

scene with 2 'pSphere1' in root and in 'group1'.
To select them both...
mc.select('*|pSphere1')
0 Likes