THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/11/2008 at 05:16, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.111
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hello. With the following code I can read the userdata of a coffe-tag. After changing the var, the console shows the correct value, but not the attribute-manager. How I change the ID_USERDATA in the attribute-manager? Please help.
> <code>
> main(doc,op)
> {
> var tag=op->GetFirstTag();
> while (!tag==NULL && !instanceof(tag, CoffeeExpressionTag))
> {
> tag=tag->GetNext();
> }
> if (!instanceof(tag, CoffeeExpressionTag)) return false;
>
> var active=tag#ID_USERDATA:1;
> println(active); //console:=0
> active=1;
> println(active); //console:=1
> }
> </code>
thx, René