So, I normally use C4DAtom::IsInstanceOf()
to get the C4D type of an object, as this function supports the plugin IDs. But in fact, in Python there is another function CheckType()
in the same class... and I cannot see what the difference between both is. CheckType
doesn't seem to exist in the C++ API.
CheckType
returns True
if you test against a base type like Obase
, just like IsInstanceOf
. In the Python documentation, the description for both functions is the same to the letter. Is CheckType
just an alias, or is there a semantical difference?
In other posts here, people seem to use IsInstanceOf
throughout. Python itself has its own type()
and isinstance()
functions for the actual class structure, so I am a bit confused now.