1 into the inlet makes plot visible, 0 makes it invisible.
to add some info: this toggles visibility for all instances of the struct. if you want to control visibility per instance then use the "-v" flag together with a field name of your struct and control it with the [set] object (which takes a pointer to the instance). this is the same as changing the color, as Jonathan explained.
note that you can't send a float message to [plot] once you provide the "-v" flag.
Christof
Gesendet: Sonntag, 22. Oktober 2017 um 13:57 Uhr Von: JonathanFrank@gmx.net An: pd-list@lists.iem.at Betreff: Re: [PD] (simple) questions about [plot]
hi rolf, 1 into the inlet makes plot visible, 0 makes it invisible. for color you need to define a float variable in struct so that you can change the color with set in polygon/curve/symbol/number. jonathan
Gesendet: Sonntag, 22. Oktober 2017 um 13:26 Uhr Von: rolfm@dds.nl An: "Pd list" pd-list@lists.iem.at Betreff: [PD] (simple) questions about [plot] hi list,
in the [plot]-help-file is says: "alternatively, an optional "-v [variable]" flag to assign a variable to make this visible/invisible."
when creating the object, using at -v 1 makes is visible, -v 0 hides it.
but how to change this during runtime? same question for the color.
[plot] has an inlet, however it has 'no method' for 'set' or for 'vis' or 'color'.
the only suggestion (10 years old) i found was to dynamically delete the object and create a new one with the desired arguments.
rolf
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list%5Bhttps://deref-gmx.net/mail/cl...] _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list%5Bhttps://lists.puredata.info/l...]