THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/01/2007 at 01:38, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hi, All!
I the beginner in programming on C.O.F.F.E.E. I have faced a problem.
I need to choose the first object to which the concrete material is appropriated.
In COFFEE SDK:
1. texture tag have a fuction GetMaterial();
2. material have a function GetName();
Why next code don't work:
main(doc,op)
{
var tag0=op->GetFirstTag();
if (!tag0) {println("No Tags!"); return FALSE;}
while (tag0->GetType()!= TAG_TEXTURE)
{
tag0=tag0->GetNext();
if (!tag0) return FALSE;
}
var MatName=tag0->GetMaterial()->GetName();
println(MatName);
}
In result: Member not found
:)