hey List
I try to create an rarray within an array, but every time I try to type [struct array arrayWithin arrayWithin-template] in arrays template (both before and after creation a template for arrayWithin), pd crashes. It seems like I lack some basic order rules for creating templates. Can anybody point me to where to look? I use 5.array.pd patch in docs, if anybody could tweak it to work, i'd send you nice organic coffee beans/wine, whereever you reside :-)
Is it possible to change the drawing layer order in the drawing window, it seems like the last drawn object always appears on top. My idea was to create a drawpolygon to be the canvas behind the drawing. Or is there another way to do it?
Is it possible to dynamically change the scaling of drawing window as you do in properties with X and Y units from within pd?
Is there a "human" way to draw with 3d perspective in mind or do I need to read the h** lot on vectors and stuff, and rescale the whole multiverse? Any links would be more valuable then truth and will be taken with a gentle hand of thank you.
big massive thanks in advance ~/.jc
hello, I didn't try yet pd-0.46 but with pd-0.45 it should be the same thing...
Le 24/05/2015 14:29, jamal crawford a écrit :
hey List
I try to create an rarray within an array, but every time I try to type [struct array arrayWithin arrayWithin-template] in arrays template (both before and after creation a template for arrayWithin), pd crashes. It seems like I lack some basic order rules for creating templates. Can anybody point me to where to look? I use 5.array.pd patch in docs, if anybody could tweak it to work, i'd send you nice organic coffee beans/wine, whereever you reside :-)
...there is a bug since the very begining of puredata, if you don't delete data and modify your structure pd will crash
also I think this is not a good idea to draw arrays within arrays, because bindings doesn't work anymore within arrays
Is it possible to change the drawing layer order in the drawing window, it seems like the last drawn object always appears on top. My idea was to create a drawpolygon to be the canvas behind the drawing. Or is there another way to do it?
what about simply putting a canvas instead?
Is it possible to dynamically change the scaling of drawing window as you do in properties with X and Y units from within pd?
donecanvasdialog message is designed to do this
Is there a "human" way to draw with 3d perspective in mind or do I need to read the h** lot on vectors and stuff, and rescale the whole multiverse? Any links would be more valuable then truth and will be taken with a gentle hand of thank you.
openGL is doing this, maybe you should use Gem for your interface?
big massive thanks in advance ~/.jc
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hey and thanks for the reply
...there is a bug since the very begining of puredata, if you don't delete data and modify your structure pd will crash
word!
also I think this is not a good idea to draw arrays within arrays, because bindings doesn't work anymore within arrays
so you mean I will need to defy new struct arguments for every array I will put in an array? if so, I won't mind that. so it is indeed possible to put an array within an array, its just me who is doing it in wrong creation order?
what about simply putting a canvas instead?
it just won't save the canvas and anything else beside the drawing (is there other ways to save the drawing besides [write( message?). i have a few of them and usually save them, so I can work on them later. and secondly its way much work to append 50+ arguments, when I can save them with a click.
donecanvasdialog message is designed to do this
exactly! :)
openGL is doing this, maybe you should use Gem for your interface?
not maybe, but absolutently! but i think the copy/paste/delete function in the drawing window and scalar-editing are quite usefull to me. just having the window stick on top of all your workspaces and traversing with vnext is quite appealing. and btw: how would I even draw an array in Gem? i have absolutely no idea .. :-)
On Mon, May 25, 2015, at 12:54 PM, patrice colet wrote:
hello, I didn't try yet pd-0.46 but with pd-0.45 it should be the same thing...
Le 24/05/2015 14:29, jamal crawford a écrit :
hey List
I try to create an rarray within an array, but every time I try to type [struct array arrayWithin arrayWithin-template] in arrays template (both before and after creation a template for arrayWithin), pd crashes. It seems like I lack some basic order rules for creating templates. Can anybody point me to where to look? I use 5.array.pd patch in docs, if anybody could tweak it to work, i'd send you nice organic coffee beans/wine, whereever you reside :-)
...there is a bug since the very begining of puredata, if you don't delete data and modify your structure pd will crash
also I think this is not a good idea to draw arrays within arrays, because bindings doesn't work anymore within arrays
Is it possible to change the drawing layer order in the drawing window, it seems like the last drawn object always appears on top. My idea was to create a drawpolygon to be the canvas behind the drawing. Or is there another way to do it?
what about simply putting a canvas instead?
Is it possible to dynamically change the scaling of drawing window as you do in properties with X and Y units from within pd?
donecanvasdialog message is designed to do this
Is there a "human" way to draw with 3d perspective in mind or do I need to read the h** lot on vectors and stuff, and rescale the whole multiverse? Any links would be more valuable then truth and will be taken with a gentle hand of thank you.
openGL is doing this, maybe you should use Gem for your interface?
big massive thanks in advance ~/.jc
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Just tried this in 0.46 (actually, tried [struct foo array arrayWithin arrayWithin-template]) and Pd didn't crash (although I think it was easy to crash Pd 0.45 making arrays with undefined templates). But it's very confusing to get around such a data structure and I can't figure out how to detect clicks on array elements.
cheers Miller
On Mon, May 25, 2015 at 09:40:01PM +0200, jamal crawford wrote:
hey and thanks for the reply
...there is a bug since the very begining of puredata, if you don't delete data and modify your structure pd will crash
word!
also I think this is not a good idea to draw arrays within arrays, because bindings doesn't work anymore within arrays
so you mean I will need to defy new struct arguments for every array I will put in an array? if so, I won't mind that. so it is indeed possible to put an array within an array, its just me who is doing it in wrong creation order?
what about simply putting a canvas instead?
it just won't save the canvas and anything else beside the drawing (is there other ways to save the drawing besides [write( message?). i have a few of them and usually save them, so I can work on them later. and secondly its way much work to append 50+ arguments, when I can save them with a click.
donecanvasdialog message is designed to do this
exactly! :)
openGL is doing this, maybe you should use Gem for your interface?
not maybe, but absolutently! but i think the copy/paste/delete function in the drawing window and scalar-editing are quite usefull to me. just having the window stick on top of all your workspaces and traversing with vnext is quite appealing. and btw: how would I even draw an array in Gem? i have absolutely no idea .. :-)
On Mon, May 25, 2015, at 12:54 PM, patrice colet wrote:
hello, I didn't try yet pd-0.46 but with pd-0.45 it should be the same thing...
Le 24/05/2015 14:29, jamal crawford a écrit :
hey List
I try to create an rarray within an array, but every time I try to type [struct array arrayWithin arrayWithin-template] in arrays template (both before and after creation a template for arrayWithin), pd crashes. It seems like I lack some basic order rules for creating templates. Can anybody point me to where to look? I use 5.array.pd patch in docs, if anybody could tweak it to work, i'd send you nice organic coffee beans/wine, whereever you reside :-)
...there is a bug since the very begining of puredata, if you don't delete data and modify your structure pd will crash
also I think this is not a good idea to draw arrays within arrays, because bindings doesn't work anymore within arrays
Is it possible to change the drawing layer order in the drawing window, it seems like the last drawn object always appears on top. My idea was to create a drawpolygon to be the canvas behind the drawing. Or is there another way to do it?
what about simply putting a canvas instead?
Is it possible to dynamically change the scaling of drawing window as you do in properties with X and Y units from within pd?
donecanvasdialog message is designed to do this
Is there a "human" way to draw with 3d perspective in mind or do I need to read the h** lot on vectors and stuff, and rescale the whole multiverse? Any links would be more valuable then truth and will be taken with a gentle hand of thank you.
openGL is doing this, maybe you should use Gem for your interface?
big massive thanks in advance ~/.jc
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hey
Just tried this in 0.46 (actually, tried [struct foo array arrayWithin arrayWithin-template]) and Pd didn't crash
neither here, but ...
But it's very confusing to get around such a data structure and I can't figure out how to detect clicks on array elements.
yeah, exactly. i thought that the arrayWithin will by default be "sitting" on every click of the motherArray, so one could "zoom in" with [donecanvasdialog(, drag the points and zoom out again.
best regs
On Mon, May 25, 2015, at 11:20 PM, Miller Puckette wrote:
Just tried this in 0.46 (actually, tried [struct foo array arrayWithin arrayWithin-template]) and Pd didn't crash (although I think it was easy to crash Pd 0.45 making arrays with undefined templates). But it's very confusing to get around such a data structure and I can't figure out how to detect clicks on array elements.
cheers Miller
On Mon, May 25, 2015 at 09:40:01PM +0200, jamal crawford wrote:
hey and thanks for the reply
...there is a bug since the very begining of puredata, if you don't delete data and modify your structure pd will crash
word!
also I think this is not a good idea to draw arrays within arrays, because bindings doesn't work anymore within arrays
so you mean I will need to defy new struct arguments for every array I will put in an array? if so, I won't mind that. so it is indeed possible to put an array within an array, its just me who is doing it in wrong creation order?
what about simply putting a canvas instead?
it just won't save the canvas and anything else beside the drawing (is there other ways to save the drawing besides [write( message?). i have a few of them and usually save them, so I can work on them later. and secondly its way much work to append 50+ arguments, when I can save them with a click.
donecanvasdialog message is designed to do this
exactly! :)
openGL is doing this, maybe you should use Gem for your interface?
not maybe, but absolutently! but i think the copy/paste/delete function in the drawing window and scalar-editing are quite usefull to me. just having the window stick on top of all your workspaces and traversing with vnext is quite appealing. and btw: how would I even draw an array in Gem? i have absolutely no idea .. :-)
On Mon, May 25, 2015, at 12:54 PM, patrice colet wrote:
hello, I didn't try yet pd-0.46 but with pd-0.45 it should be the same thing...
Le 24/05/2015 14:29, jamal crawford a écrit :
hey List
I try to create an rarray within an array, but every time I try to type [struct array arrayWithin arrayWithin-template] in arrays template (both before and after creation a template for arrayWithin), pd crashes. It seems like I lack some basic order rules for creating templates. Can anybody point me to where to look? I use 5.array.pd patch in docs, if anybody could tweak it to work, i'd send you nice organic coffee beans/wine, whereever you reside :-)
...there is a bug since the very begining of puredata, if you don't delete data and modify your structure pd will crash
also I think this is not a good idea to draw arrays within arrays, because bindings doesn't work anymore within arrays
Is it possible to change the drawing layer order in the drawing window, it seems like the last drawn object always appears on top. My idea was to create a drawpolygon to be the canvas behind the drawing. Or is there another way to do it?
what about simply putting a canvas instead?
Is it possible to dynamically change the scaling of drawing window as you do in properties with X and Y units from within pd?
donecanvasdialog message is designed to do this
Is there a "human" way to draw with 3d perspective in mind or do I need to read the h** lot on vectors and stuff, and rescale the whole multiverse? Any links would be more valuable then truth and will be taken with a gentle hand of thank you.
openGL is doing this, maybe you should use Gem for your interface?
big massive thanks in advance ~/.jc
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 05/25/2015 03:40 PM, jamal crawford wrote:
hey and thanks for the reply
...there is a bug since the very begining of puredata, if you don't delete data and modify your structure pd will crash
word!
also I think this is not a good idea to draw arrays within arrays, because bindings doesn't work anymore within arrays
so you mean I will need to defy new struct arguments for every array I will put in an array? if so, I won't mind that. so it is indeed possible to put an array within an array, its just me who is doing it in wrong creation order?
Yes, you can do that.
As far as order-- in Pd-l2ork I made a revision so that a struct will simply refuse to create if you give it an array field with a nonexistent template for the data. But it gives you an error saying so-- that way you can just go and create the template and it will work after that.
what about simply putting a canvas instead?
it just won't save the canvas and anything else beside the drawing (is there other ways to save the drawing besides [write( message?). i have a few of them and usually save them, so I can work on them later. and secondly its way much work to append 50+ arguments, when I can save them with a click.
Scalars and their data are saved with the patch.
donecanvasdialog message is designed to do this
exactly! :)
The coords message does the same without setting the "dirty" flag on the canvas (which will prompt for save before closing). Not sure if that matters in your case.
Also-- in a _single_ scalar, the shapes will be drawn using the order that you created the drawing commands. So if you create a [filledpolygon] first, then create a [drawcurve] after that, the filled polygon will be drawn with the curve on top of it.
If you draw two separate scalars that overlap, essentially you cannot control which one gets drawn on top. If you update one of the fields associated with a coordinate, that scalar will get drawn on top. But if I remember correctly certain operations in Pd (like updating an array) redraw _all_ the scalars, at which point you'll probably lose the ordering you set up.
This is in the process of getting fixed in Pd-l2ork. Since I'm using browser technology it'd also be possible to add a drawing command for 3d shapes using webgl. (But webgl is so much more complicated I'm not sure how it could be made usable in this context.)
-Jonathan
many people already gave replies to the questions, so I leave the example
of array encapsulation from my data structures workshop.
Very important, you don't get mouse control of the encapsulated array,
only of the top one. Maybe you should say exactly why you think you need
encapsulated arrays. If it's to draw a canvas/box, you can do that in the
same template as your main array.
Joao
On 05/25/2015 03:40 PM, jamal crawford wrote:
hey and thanks for the reply
...there is a bug since the very begining of puredata, if you don't delete data and modify your structure pd will crash
word!
also I think this is not a good idea to draw arrays within arrays, because bindings doesn't work anymore within arrays
so you mean I will need to defy new struct arguments for every array I will put in an array? if so, I won't mind that. so it is indeed possible to put an array within an array, its just me who is doing it in wrong creation order?
Yes, you can do that.
As far as order-- in Pd-l2ork I made a revision so that a struct will simply refuse to create if you give it an array field with a nonexistent template for the data. But it gives you an error saying so-- that way you can just go and create the template and it will work after that.
what about simply putting a canvas instead?
it just won't save the canvas and anything else beside the drawing (is there other ways to save the drawing besides [write( message?). i have a few of them and usually save them, so I can work on them later. and secondly its way much work to append 50+ arguments, when I can save them with a click.
Scalars and their data are saved with the patch.
donecanvasdialog message is designed to do this
exactly! :)
The coords message does the same without setting the "dirty" flag on the canvas (which will prompt for save before closing). Not sure if that matters in your case.
Also-- in a _single_ scalar, the shapes will be drawn using the order
that you created the drawing commands. So if you create a [filledpolygon] first, then create a [drawcurve] after that, the filled polygon will be drawn with the curve on top of it.If you draw two separate scalars that overlap, essentially you cannot control which one gets drawn on top. If you update one of the fields associated with a coordinate, that scalar will get drawn on top. But if I remember correctly certain operations in Pd (like updating an array) redraw _all_ the scalars, at which point you'll probably lose the
ordering you set up.This is in the process of getting fixed in Pd-l2ork. Since I'm using browser technology it'd also be possible to add a drawing command for 3d shapes using webgl. (But webgl is so much more complicated I'm not sure how it could be made usable in this context.)
-Jonathan
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Le 25/05/2015 21:40, jamal crawford a écrit :
openGL is doing this, maybe you should use Gem for your interface?
not maybe, but absolutently! but i think the copy/paste/delete function in the drawing window and scalar-editing are quite usefull to me. just having the window stick on top of all your workspaces and traversing with vnext is quite appealing. and btw: how would I even draw an array in Gem? i have absolutely no idea .. :-)
the new array object makes drawing quite simplier with Gem, but there is no copy/paste function, I've attached an example
On Mon, May 25, 2015, at 12:54 PM, patrice colet wrote:
hello, I didn't try yet pd-0.46 but with pd-0.45 it should be the same thing...
Le 24/05/2015 14:29, jamal crawford a écrit :
hey List
I try to create an rarray within an array, but every time I try to type [struct array arrayWithin arrayWithin-template] in arrays template (both before and after creation a template for arrayWithin), pd crashes. It seems like I lack some basic order rules for creating templates. Can anybody point me to where to look? I use 5.array.pd patch in docs, if anybody could tweak it to work, i'd send you nice organic coffee beans/wine, whereever you reside :-)
...there is a bug since the very begining of puredata, if you don't delete data and modify your structure pd will crash
also I think this is not a good idea to draw arrays within arrays, because bindings doesn't work anymore within arrays
Is it possible to change the drawing layer order in the drawing window, it seems like the last drawn object always appears on top. My idea was to create a drawpolygon to be the canvas behind the drawing. Or is there another way to do it?
what about simply putting a canvas instead?
Is it possible to dynamically change the scaling of drawing window as you do in properties with X and Y units from within pd?
donecanvasdialog message is designed to do this
Is there a "human" way to draw with 3d perspective in mind or do I need to read the h** lot on vectors and stuff, and rescale the whole multiverse? Any links would be more valuable then truth and will be taken with a gentle hand of thank you.
openGL is doing this, maybe you should use Gem for your interface?
big massive thanks in advance ~/.jc
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
wauw! exactly, you scratched my brain in a very pleasant way :)
On Wed, May 27, 2015, at 06:30 PM, patrice colet wrote:
Le 25/05/2015 21:40, jamal crawford a écrit :
openGL is doing this, maybe you should use Gem for your interface?
not maybe, but absolutently! but i think the copy/paste/delete function in the drawing window and scalar-editing are quite usefull to me. just having the window stick on top of all your workspaces and traversing with vnext is quite appealing. and btw: how would I even draw an array in Gem? i have absolutely no idea .. :-)
the new array object makes drawing quite simplier with Gem, but there is no copy/paste function, I've attached an example
Email had 1 attachment:
- gemArray.pd 4k (text/x-puredata)