[pattrstorage] and [pattr] change mode

zion's icon

Hi,
I can tell [pattrstorage] in general to send saved values only if they were changed from one preset to another by using changemode attribute, and that will effects all [pattr] object that subscribed to that [pattrstorage].
But can I set changemode to 0 and exclusively set a certain [pattr] to output its value only if changed?
I did read [pattr] references, could not see it and wanted to be sure that I did'nt miss anything.

Thanks!!

Jean-Francois Charles's icon

One option would be to put a [change] object at the output of the [pattr].

zion's icon

Hi
Of cource I thought of it, but it is a text that I am filtering and [change] doesnt take it..
So I need the equivalent for change when it it text string(a path for a file)..
So far I use zl.compare..
Or alternativlly can I tell [textedit] not to output a text if it is the same text that just came before?
Thanks!

Jean-Francois Charles's icon

Just [zl.change] instead of [change]?

zion's icon

Ok ! Great!
Thanks (-: