@ferdinand said in Where do I find IDs?:
as it can yield results which are ambigous
Hm, that is an interesting statement. Of course, any enum types and/or any IDs for things like dropdowns may be ambiguous, as they all tend to start with 0. (This covers DescIDs.) Also, naturally bitfields cannot be handled that way as they combine single-bit values into one number which by default doesn't have a symbolic constant.
However, what about object IDs, shader IDs, effector IDs, etc., like in the original question? I would have expected that these are part of the program-wide, world-wide unique ID system that is also used for plugin IDs (which then also cover objects of these types again).
Depending on the internal handling (which I can't look at, of course) it is possible that C4D actually uses a hierarchical identification system, but naively I would not have expected that, since there are functions like GetType with a single numeric return value, existing on the very top of the class hierarchy (C4DAtom).
Thus my followup question - is it actually possible that objects (not enum values, containerized parameters, or GUI elements) share an ID? And if so, under what cicumstances does that happen?