Pattr support for more complex data sets.

Jul 20, 2007 at 8:30pm

Pattr support for more complex data sets.

Hello,

Does anyone have an example for pattr code for externals with a more
complex data set than a standard variable, like a struct?

I am looking to add pattr support to a breakpoint object like
Function, and am not quite sure how to go about it and far as how to
pass the data in the getvalueof function.

There don’t seem to be really any examples of this in the pattr
SDK…but I could very well just not be understanding something.

Thanks,

b

Barry Threw
Media Art and Technology

San Francisco, CA Work: 857-544-3967
Email: bthrew@gmail.com
IM: captogreadmore (AIM)
http:/www.barrythrew.com

#32973
Jul 20, 2007 at 8:37pm

Well, now that you’re on the dev list, I can answer your question. :)

You might think about implementing your object with attributes, and
using an autopattr in @greedy 1 to suck up all of the attrs into
multiple pattr datapoints – for instance:

@a_level
@a_time
@d_level
@d_time
@s_level
@s_time
@r_level
@r_time

Problem being, of course, that you’re then limited to a finite number
of pre-determined attributes.

Otherwise, you could do something a la matrixctrl, where there’s just
a kind of badly designed “dump format” [x, y, state] repeated over
and over again. Or just come up with your own crazy system. You have
control over your get- and setvalueof methods, so they can format and
interpret your object’s “value” however you like. You’re limited to
something like 4092 different atoms in this value, though.

jb

Am 20.07.2007 um 22:30 schrieb barry threw:

> Hello,
>
> Does anyone have an example for pattr code for externals with a
> more complex data set than a standard variable, like a struct?
>
> I am looking to add pattr support to a breakpoint object like
> Function, and am not quite sure how to go about it and far as how
> to pass the data in the getvalueof function.
>
> There don’t seem to be really any examples of this in the pattr
> SDK…but I could very well just not be understanding something.
>
> Thanks,
>
> b
>
>
> Barry Threw
> Media Art and Technology
>
>
> San Francisco, CA Work: 857-544-3967
> Email: bthrew@gmail.com
> IM: captogreadmore (AIM)
> http:/www.barrythrew.com
>
>
>

#109258

You must be logged in to reply to this topic.