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.

How to have an Object Id list ?

How to have an Object Id list ?

Anonymous
Not applicable
810 Views
2 Replies
Message 1 of 3

How to have an Object Id list ?

Anonymous
Not applicable
hello,

I try to get a list of all Object Id use in scene and how they are assigned.
Does any one have an idea how to get this list?

thank you.
0 Likes
811 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
hello,

I try to get a list of all Object Id use in scene and how they are assigned.
Does any one have an idea how to get this list?

thank you.



for o in geometry do 
format "% - ObjectID: %\n" o.name o.gbufferChannel


You can write that to a text file, if you prefer.
0 Likes
Message 3 of 3

Anonymous
Not applicable
thank you, It saves my day.
Next thing I have to try is to build a list of object by id in hierarchy.
0 Likes