[PD-dev] Querying for object resize width
Alexandre Torres Porres
porres at gmail.com
Sat Oct 10 18:11:00 CEST 2020
Hi Derek, trying to look into this as well and add more info and my own
Pd objects get saved with their width size info in the "obj_saveformat"
function here =>
This will give you, for instance, "#X obj 100 100 f*, f 50*;", which is a
[f ] object with width size = 50.
But I don't really understand how this obj_saveformat is called for every
object in the canvas...
I know the width is set here when we're editing the patch
This editing function works for coll as for every other object. We can even
use the undo function and get the previously setted size, the only thing is
that coll is failing to save this information.
I don't really know how coll gets saved but it just bypasses Pd's mechanism
(which I also don't know how it works or gets called as I said). What I
know is that if we edit the .pd file and manually add something like ", f
50" after the coll object (giving us something like "#X obj 100 100 coll,
f 50;"), Pd will effectively load the patch with a resized coll object. So
yeah, we just need to find a way to get coll to use obj_saveformat and
store the "te_width" information.
How to do that? No idea, and I hope the Pd wizards can help us :)
Em sáb., 10 de out. de 2020 às 04:47, Derek Kwan <derek.x.kwan at gmail.com>
> Cyclone existed before resizing object boxes was added to Pd and objects
> that save their information with the patch like [coll] have their own
> Cyclone ways of saving their information in the save file for a patch so
> you can resize things like [coll] just fine, but that information
> doesn't get saved. Is there a way of querying Pd (I'm guessing it'd be
> via TCL?) of what an object's resize width is so this issue can be fixed
> and if so, how or where to look? If there isn't, is there a suggested
> workaround? Thanks!
> Derek Kwan
> Pd-dev mailing list
> Pd-dev at lists.iem.at
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pd-dev