Hello all Is there a way to include a data structure graphical shape (filledpolygon for example) inside an abstraction's graph on parent? I saw that when trying to add a graph on parent in the data window it messes up everything. Thanks Eldad
----- Original Message -----
From: eldad tsabary tazberrydocs@gmail.com To: pd-list@iem.at Cc: Sent: Tuesday, November 27, 2012 1:48 PM Subject: [PD] data structures in abstractions
Hello all Is there a way to include a data structure graphical shape (filledpolygon for example) inside an abstraction's graph on parent? I saw that when trying to add a graph on parent in the data window it messes up everything. Thanks Eldad
Hi Eldad, You have to adjust the x range and y range in the canvas properties to be "in agreement" with the x and y size in the canvas properties. So if x size is 85, make the range 0 to 84, and do a similar process for the y. I think it's done this way for "Put" menu arrays where you would have a different y range depending on the situation. However, drawing instructions like [plot] give the ability to scale the values of a scalar to some screen pixel range so I don't get why this "range" business is part of the canvas properties (or the canvas class for that matter).
-Jonathan
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Great It works fairly well with graph on parent of the subpatch (datawindow) However, if I try to make the entire patch into an abstraction and have a graph on parent of the main window containing the graph from the subpatch it doesn't work so well. It seems to display in another patch but buggy, and it also doesn't allow me to drag and drop the polygon joints. Do you know if this should work and how? Many thanks again Eldad
On 2012-11-27, at 3:09 PM, Jonathan Wilkes wrote:
----- Original Message -----
From: eldad tsabary tazberrydocs@gmail.com To: pd-list@iem.at Cc: Sent: Tuesday, November 27, 2012 1:48 PM Subject: [PD] data structures in abstractions
Hello all Is there a way to include a data structure graphical shape (filledpolygon for example) inside an abstraction's graph on parent? I saw that when trying to add a graph on parent in the data window it messes up everything. Thanks Eldad
Hi Eldad, You have to adjust the x range and y range in the canvas properties to be "in agreement" with the x and y size in the canvas properties. So if x size is 85, make the range 0 to 84, and do a similar process for the y. I think it's done this way for "Put" menu arrays where you would have a different y range depending on the situation. However, drawing instructions like [plot] give the ability to scale the values of a scalar to some screen pixel range so I don't get why this "range" business is part of the canvas properties (or the canvas class for that matter).
-Jonathan
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
----- Original Message -----
From: eldad tsabary tazberrydocs@gmail.com To: pd-list@iem.at Cc: Sent: Tuesday, November 27, 2012 10:31 PM Subject: Re: [PD] data structures in abstractions
G reat It works fairly well with graph on parent of the subpatch (datawindow) However, if I try to make the entire patch into an abstraction and have a graph on parent of the main window containing the graph from the subpatch it doesn't work so well. It seems to display in another patch but buggy, and it also doesn't allow me to drag and drop the polygon joints. Do you know if this should work and how? Many thanks again Eldad
Works for me-- I don't get any difference between gop subpatch (or nested subpatches) vs. gop abstraction. I can click and drag the joints the same as before.
What is buggy?
-Jonathan
On 2012-11-27, at 3:09 PM, Jonathan Wilkes wrote:
----- Original Message -----
From: eldad tsabary tazberrydocs@gmail.com To: pd-list@iem.at Cc: Sent: Tuesday, November 27, 2012 1:48 PM Subject: [PD] data structures in abstractions
Hello all Is there a way to include a data structure graphical shape
(filledpolygon for
example) inside an abstraction's graph on parent? I saw that when trying to add a graph on parent in the data window it
messes up
everything. Thanks Eldad
Hi Eldad, You have to adjust the x range and y range in the canvas properties to
be "in
agreement" with the x and y size in the canvas properties. So if x
size is 85, make
the range 0 to 84, and do a similar process for the y. I think it's done this way for "Put" menu arrays where
you would have a different
y range depending on the situation. However, drawing instructions like
[plot] give the
ability to scale the values of a scalar to some screen pixel range so I
don't get why
this "range" business is part of the canvas properties (or the
canvas class for that
matter).
-Jonathan
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks Jonathan You are a magician. You said it works, so now it does.... no bugs. The only thing I can't get rid of is the datawindow name appearing in the graph on parent. No matter how many times I turn it off, once I save it and load it again, it comes back on. The name of the main graph on parent does not show, only of the subpatch I attached the abstraction here Cheers Eldad
On 2012-11-27, at 11:11 PM, Jonathan Wilkes wrote:
----- Original Message -----
From: eldad tsabary tazberrydocs@gmail.com To: pd-list@iem.at Cc: Sent: Tuesday, November 27, 2012 10:31 PM Subject: Re: [PD] data structures in abstractions
G reat It works fairly well with graph on parent of the subpatch (datawindow) However, if I try to make the entire patch into an abstraction and have a graph on parent of the main window containing the graph from the subpatch it doesn't work so well. It seems to display in another patch but buggy, and it also doesn't allow me to drag and drop the polygon joints. Do you know if this should work and how? Many thanks again Eldad
Works for me-- I don't get any difference between gop subpatch (or nested subpatches) vs. gop abstraction. I can click and drag the joints the same as before.
What is buggy?
-Jonathan
On 2012-11-27, at 3:09 PM, Jonathan Wilkes wrote:
----- Original Message -----
From: eldad tsabary tazberrydocs@gmail.com To: pd-list@iem.at Cc: Sent: Tuesday, November 27, 2012 1:48 PM Subject: [PD] data structures in abstractions
Hello all Is there a way to include a data structure graphical shape
(filledpolygon for
example) inside an abstraction's graph on parent? I saw that when trying to add a graph on parent in the data window it
messes up
everything. Thanks Eldad
Hi Eldad, You have to adjust the x range and y range in the canvas properties to
be "in
agreement" with the x and y size in the canvas properties. So if x
size is 85, make
the range 0 to 84, and do a similar process for the y. I think it's done this way for "Put" menu arrays where
you would have a different
y range depending on the situation. However, drawing instructions like
[plot] give the
ability to scale the values of a scalar to some screen pixel range so I
don't get why
this "range" business is part of the canvas properties (or the
canvas class for that
matter).
-Jonathan
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
I don't have much time to look at patches now. You can see my abstractions
[jmmmp/bezier], [jmmmp/swatch], to see if there's something you find
interesting for your problem. They should be in pd-extended.
Best,
João
Thanks Jonathan You are a magician. You said it works, so now it does.... no bugs. The only thing I can't get rid of is the datawindow name appearing in
the graph on parent. No matter how many times I turn it off, once I save
it and load it again, it comes back on. The name of the main graph on parent does not show, only of the subpatch I attached the abstraction here Cheers Eldad
Hi,
I noticed the gop doesn't work on pd-ext 0.42-5, but it works on 0.43-4
(w7).
Another bug that was already there: if you drag one control point to
outside the gop window, the struct doesn't respond to the mouse control
anymore - although it still works properly. In my abstraction
[jmmmp/bezier] I use messages to put the struct back into the gop
boundaries.
About the name and arguments always showing, it's a bit annoying. I think
I made an extra [donecanvasdialog 1 -1 2 -20 120 120 -20 $1 $2 0 0, dirty
0( in [bezier] to enforce this choice. Maybe there's something broken in
the code, that it doesn't let the option be taken?
João
Thanks Jonathan You are a magician. You said it works, so now it does.... no bugs. The only thing I can't get rid of is the datawindow name appearing in
the graph on parent. No matter how many times I turn it off, once I save
it and load it again, it comes back on. The name of the main graph on parent does not show, only of the subpatch I attached the abstraction here Cheers Eldad