THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/03/2008 at 02:01, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.5
Platform: Windows ;
Language(s) : C++ ;
---------
Hello,
I am currently writing an export plugin for C4D Version
10.5. So far its working fine, however I am somehow
stuck with the following:
- I can iterate through all BaseObjects and I can access
the mesh data as well as the texture coordinates as
well as normals (if a phong tag is attached)
- However I do not know how I can get the BaseMaterial
of a BaseObject. I can do the following:
BaseObject *op;
TextureTag *ttag = op->GetTag( Ttexture );
BaseMaterial *mat = ttag->GetMaterial();
But this only works if the object has a texture
assigned, which is not always the case for the objects
we model.
My question is: How do I get the BaseMaterial of a
given BaseObject?
Regards,
Mark