How to get Object name.

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

On 10/05/2005 at 00:43, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   8.5 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;

---------Hi,
how can i get the name of a Material, when I have the Object-id?

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

On 11/05/2005 at 00:58, xxxxxxxx wrote:

Try to loop around the tags associated with that object and find TextureTag (Tag type of Ttexture). From where you can get the Material name. Hope this will work.

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

On 11/05/2005 at 05:56, xxxxxxxx wrote:

Sorry, i didn't write it clear: I didn't mean the object-id. I have already the Material-ID. And I can't find a way to read the Name of the Material.

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

On 13/05/2005 at 02:25, xxxxxxxx wrote:

Just use GetName() :

    
    
    println(doc->GetFirstMaterial()->GetName());