Object Type

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 16/09/2004 at 23:35, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.100 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------


Hello ,
My problem is like that.
I want to know the type of an  object that I currently select.
It can solve by using GetType method of the basecontainer object and Description class.
But after the object has been made edittable, the object type become "base object",not the specific type like "Cube Object" or "Cone Object".
What I have to do to know the selected object type after selecting it.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/09/2004 at 00:36, xxxxxxxx wrote:

Hi
If I'm not wrong, once you make editable, there is no way to find out what kind of object is that.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/09/2004 at 05:18, xxxxxxxx wrote:

not possible if you don´t have earlier access to it.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 17/09/2004 at 06:45, xxxxxxxx wrote:

Use IsInstanceOf(TYPE_ID) or GetInfo() to determine the current type:

if (baseobject->IsInstanceOf(Obone)) ...

// For SplineObjects
if (baseobject->GetInfo() & OBJECT_SPLINE) ...

Once an object is made editable, its previous type will not be retrievable.

Check out the Resource:res:description files in the for valid object types.