Hello,
I've been attempting to use graph on parent. Why is it that the scale of the parent-canvas is way different than that of the subpatch? Is there a legitimate reason for this?
Also, what are the functions of the settings "X units per pixel" and "Y units per pixel" in the subpatch properties area? I can't seem to change them when "graph on parent" is on and when it's off, changing them doesn't do anything. Thanks
Hallo, Jordan J hat gesagt: // Jordan J wrote:
I've been attempting to use graph on parent. Why is it that the scale of the parent-canvas is way different than that of the subpatch? Is there a legitimate reason for this?
Also, what are the functions of the settings "X units per pixel" and "Y units per pixel" in the subpatch properties area? I can't seem to change them when "graph on parent" is on and when it's off, changing them doesn't do anything. Thanks
The GOP patches have a special algorithm to scale from the size of the opened subpatch to that of the subpatch used as a GOP in another patch. I do as follows. I design a patch with GUI elements, save it, make a now patch where I load the first as an abstraction. Then I opn the abstraction, switch on g.o.p., and close it again. Now it looks horrible, and I fix that by editing the properties (width, height) of the GOP abstraction inside the *parent* patch. If all is well, I save the *child* patch, i.e. the very first abstraction, again and it now remebers its size. One could probably do this with clever caculations of the "X units", but in Pd I don't work that way.
Frank Barknecht _ ______footils.org__
hi, gops have some specialities, which are not that easy to deal with... in every patch, which is used as a gop, two things are saved: the canvas size of the normal patch (when opened) and the canvas (coords) dimensions of the gop in the parent patch. if you use a text-editor to look at the pd-patch then you look at the very first and last line of the patch... the x units p p and Y u p p are only related to the size of the normal patch size (1/x-size and 1/Y-size). you can change them only by adjusting the dimensions of the patch window (mousedragging) when the gop-patch is opened. the size of the gop (which will show in the parent window) are changed by the properties-dialog of the parent-patch: create a gop in a parent-patch, click properties, and then open the gop and save(!) it. now the gop will remember these dimensions everytime you open or insert it. to have the same scaling like in the parent patch the dimensions of the gop and the size of the gop patch should be equal...
besides the problems of the size, i also didn`t like the name displaying in the gop (and also the borders, just my opinion). so i always lay a canvas below all other stuff/objects in the gop-patch. this has alos the advantage, that i know the size of the gop and it is easier to scale the patch window with the mouse and the gop name does not appear in the parent patch (it is hidden by the canvas). after the 10th gop i stopped doing this with mouse-dragging and properties-editing, but started to change this manually in a text-editor.
and now there are still two problems left: if you are on windows, the dimensions change (tcl/tk-specific-problem) by 2 pixels everytime you open and save again... so you will have a lot of readjusting again and again. and for any reason (which i dont know why) the x-size of the coords has to be (sometimes) lower by a value of 2. sometimes. if your gop patch canvas has the dimensions 300/200 then it is ok, the coords can also be 300/200. but if the size is 302/202, still the coords must be 300/200. looks like a rounding error, but could also be only windows-specific or a tcl/tk problem.
my experience is also, that graphics in gops are slower...
still, they are a good thing to use (for some purposes). marius.
----- Original Message ----- From: Jordan J To: pd-list@iem.kug.ac.at Sent: Saturday, February 01, 2003 10:12 PM Subject: [PD] Graph on Parent questions
Hello,
I've been attempting to use graph on parent. Why is it that the scale of the parent-canvas is way different than that of the subpatch? Is there a legitimate reason for this?
Also, what are the functions of the settings "X units per pixel" and "Y units per pixel" in the subpatch properties area? I can't seem to change them when "graph on parent" is on and when it's off, changing them doesn't do anything. Thanks
Hallo, marius schebella hat gesagt: // marius schebella wrote:
besides the problems of the size, i also didn`t like the name displaying in the gop (and also the borders, just my opinion). so i always lay a canvas below all other stuff/objects in the gop-patch. this has alos the advantage, that i know the size of the gop and it is easier to scale the patch window with the mouse and the gop name does not appear in the parent patch (it is hidden by the canvas).
I do this, too, sometimes, but (as the attached GOP shows) it can hide the in-/outlets which is fine for me, but can irritate other users who don't know that and how many in/outlets there are.
my experience is also, that graphics in gops are slower...
Yep. It's normally not an issue, but one should *never* put a "vu" inside a gop...
Frank Barknecht _ ______footils.org__