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@lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev


_______________________________________________
Pd-dev mailing list
Pd-dev@lists.iem.at
https://lists.puredata.info/listinfo/pd-dev

Reply via email to