THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/05/2009 at 06:28, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R11
Platform: Windows ;
Language(s) : C++ ;
---------
Hi all,
with the Help of Mathias (thanks a lot here again) I can run through all objetcs and allocte the material tag to do many things.
But:
Unfortunately I didn`t find a possibility to set the projektion (cubic, sphere, uvw) in the SDK and here in the forum.
void StepThruHierarchy(BaseObject *obj)
{
while (obj)
{
TextureTag *ttag = NULL;
ttag = static_cast<TextureTag*>(obj->GetTag(Ttexture));
if (ttag)
{
BaseMaterial *mat = NULL;
mat = ttag->GetMaterial();
ttag = SetTag(Ttexture)->projection(cubic) // hier soll die Projektion auf "cubic"gesetzt werden
if (mat) GePrint(mat->GetName());
}
StepThruHierarchy(obj->GetDown());
obj = obj->GetNext();
}
}
Thanks Ronny