userdata read and write?

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é

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 18/11/2008 at 05:20, xxxxxxxx wrote:

Quote: _How I change the ID_USERDATA in the attribute-manager?
>
> * * *
_


This should work:

> \> tag#ID_USERDATA:1 = myvalue; //my value for the userdata \>

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 18/11/2008 at 05:25, xxxxxxxx wrote:

hello and thanks. It works. The result is so simple. :D

But i can not read the userdata of type "spline", right?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 18/11/2008 at 05:35, xxxxxxxx wrote:

Unfortunatly spline userdata is not supported in COFFEE.

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 03/01/2009 at 01:46, xxxxxxxx wrote:

Matthias,

Does this mean that userdata is supported otherwise? If so, how can I access the native color picker within C4D?

Richard