[PD] Graph on Parent questions

marius schebella marius.schebella at chello.at
Sun Feb 2 09:46:12 CET 2003


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 at 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

  - Jordan 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20030202/6aeddcb2/attachment.htm>


More information about the Pd-list mailing list