THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/02/2003 at 21:55, xxxxxxxx wrote:
Cinema 4D Version: 8.012
Platform: Windows ;
Language(s) : C++ ;
This one (or two ) has me stumped. How do I find a Texture Tag associated with a known object, by name? Currently, I'm just using BaseObject->GetTag(Ttexture, i) in a loop until it finds it (or not) using String == operator.
Then, how do I set the Texture Tag's "Selection" (formerly known as "Restrict to Selection") to a known String (which equals a PolygonSelection Tag)?
On 17/02/2003 at 23:24, xxxxxxxx wrote:
In C++ this is easy:
BaseObject* obj = doc->GetFirstObject();
TextureTag* tag = static_cast<TextureTag*>(obj->GetTag(Ttexture, 0));
tag->GetParameter(DescID(TEXTURETAG_MATERIAL), matlink, NULL);
BaseMaterial* mat = static_cast<BaseMaterial*>(matlink.GetLink(doc, Mbase));
And for the restriction:
tag->SetParameter(DescID(TEXTURETAG_RESTRICTION), GeData("Restriction"), NULL);
All found in Ttexture.res.
On 18/02/2003 at 06:18, xxxxxxxx wrote:
And here, I'm searching the lib's .h and .cpp files... :0)
Thank you, Mikael!