[PD-dev] Array - how to get the drawing mode

Pierre Guillot guillotpierre6 at gmail.com
Fri Feb 23 10:28:11 CET 2018


Great!
Thanks a lot

2018-02-22 17:17 GMT+01:00 Miller Puckette <msp at ucsd.edu>:

> Arrays are actually scalar objects; you get to their template using
> the sc_template field.  You can get it using
>
> template_getfloat( template_findbyname(x->x_scalar->sc_template),
>             gensym("style"), x->x_scalar->sc_vec, 1);
>
> and change it using
>
>         template_setfloat(scalartemplate, gensym("style"),
>             x->x_scalar->sc_vec, (t_float)style, 0);
>
> cheers
> Miller
>
> On Thu, Feb 22, 2018 at 02:45:17PM +0100, Pierre Guillot wrote:
> > In Pd you can change the drawing mode of an array:
> > - polygon
> > - points
> > - bezier curve
> > I'd like to know if there is a way in C to find which mode is used. I
> can't
> > find anything in the _glist structure nor in the _garray.
> > Thanks,
> >
> > Pierre
>
> > _______________________________________________
> > Pd-dev mailing list
> > Pd-dev at lists.iem.at
> > https://lists.puredata.info/listinfo/pd-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20180223/4acf108a/attachment.html>


More information about the Pd-dev mailing list