<div dir="ltr"><font face="arial, sans-serif">Hi Derek, trying to look into this as well and add more info and my own questions...</font><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Pd objects get saved with their width size info in the "<span style="color:rgb(36,41,46);font-size:12px;white-space:pre">obj_saveformat" function</span> here => <a href="https://github.com/pure-data/pure-data/blob/2fa003d03d2deb6792659ce6cbb81cda9df38581/src/m_obj.c#L766">https://github.com/pure-data/pure-data/blob/2fa003d03d2deb6792659ce6cbb81cda9df38581/src/m_obj.c#L766</a> </font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">This will give you, for instance, "#X obj 100 100 f<b>, f 50</b>;", which is a [f ] object with width size = 50.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">But I don't really understand how this <span style="color:rgb(36,41,46);font-size:12px;white-space:pre">obj_saveformat</span> is called for every object in the canvas...</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">I know the width is set here when we're editing the patch <a href="https://github.com/pure-data/pure-data/blob/2ec4ff693fb34e08a0a2b9e3e3700db51bc4075b/src/g_editor.c#L3235">https://github.com/pure-data/pure-data/blob/2ec4ff693fb34e08a0a2b9e3e3700db51bc4075b/src/g_editor.c#L3235</a></font></div><div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">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.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">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 "<span style="color:rgb(36,41,46);font-size:12px;white-space:pre">te_width" information.</span></font></div></div><div><font face="arial, sans-serif"><span style="color:rgb(36,41,46);font-size:12px;white-space:pre"><br></span></font></div><div><font face="arial, sans-serif"><span style="color:rgb(36,41,46);font-size:12px;white-space:pre">How to do that? No idea, and I hope the Pd wizards can help us :)</span></font></div><div><font face="arial, sans-serif"><span style="color:rgb(36,41,46);font-size:12px;white-space:pre"><br></span></font></div><div><font face="arial, sans-serif"><span style="color:rgb(36,41,46);font-size:12px;white-space:pre">cheers</span></font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sáb., 10 de out. de 2020 às 04:47, Derek Kwan <<a href="mailto:derek.x.kwan@gmail.com">derek.x.kwan@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
Cyclone existed before resizing object boxes was added to Pd and objects<br>
that save their information with the patch like [coll] have their own<br>
Cyclone ways of saving their information in the save file for a patch so<br>
you can resize things like [coll] just fine, but that information<br>
doesn't get saved. Is there a way of querying Pd (I'm guessing it'd be<br>
via TCL?) of what an object's resize width is so this issue can be fixed<br>
and if so, how or where to look? If there isn't, is there a suggested<br>
workaround? Thanks!<br>
<br>
Derek<br>
<br>
-- <br>
Derek Kwan<br>
<a href="http://www.derekxkwan.com" rel="noreferrer" target="_blank">www.derekxkwan.com</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at" target="_blank">Pd-dev@lists.iem.at</a><br>
<a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a><br>
</blockquote></div>