THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/07/2007 at 11:05, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.111
Platform: Windows ;
Language(s) : C++ ;
---------
Hi.
Im trying to get (and set) some parameters of texture tag. And I cant find the way :(
This code doesnt work:
BaseObject *obj = doc->GetActiveObject() ;
TextureTag *tg = (TextureTag* )obj->GetTag( Ttexture) ;
BaseContainer bs = tg->GetData() ;
BaseList2D *dd = bs.GetString( TEXTURETAG_RESTRICTION) ;
And this doesnt work too:
BaseList2D *dd = bs.GetLink( TEXTURETAG_MATERIAL, doc) ;
and this too:
tg->GetDataInstance()->GetString( TEXTURETAG_RESTRICTION)
It seems like I cant get right BaseContainer of tag :(
Pointer to tag is valid, coz
tg->GetMaterial()->GetName()
works well.