Here is an abstraction to make static drawing simpler. Not really sure of the actual usefulness yet.
It was interesting to discover I could delete a struct and dynamically recreate it.
There is an example called mickey that uses a [metro 100] to trigger the object redraw which was as fast as it would draw properly on my computer. (slow it down if fails on yours)
Drawing objects simplified
@jancsika Hi, I've been testing out the [draw] commands and the results are great, but I am unable to create a gop abstraction. None of your tutorials or demos appear to cover 'gop'. The problems I'm having are no response in the placed abstraction and very obscure numbers in the data scaling dalog required to keep the graphics in place. I've attached an example, with the hope you can offer some help
@Balwyn I'm going to change it so that [draw] doesn't respond to GOP scaling values. Then you'll be able to position the drawing on the GOP rectangle and it will show up properly. (But I'll leave the old commands like [filledpolygon] alone for backwards compatibility.)
This is rather involved, so I won't be able to finish it for the initial release.
@Balwyn Also-- in the meantime you can set the range to be equal to the GOP width/height. So a GOP that is 50x100 would have a left/right range of 0 to 49, and a top/bottom range of 0 to 99. Then imagine that the GOP rectangle is just the subpatch window itself and position the scalar accordingly.
This method is complicated by the fact that Pd will display the data structures inside the subpatch window scaled according to the dimensions of the subpatch's window.
Hi. Very interested in pd's drawing capabilities and grateful for the share of 'object-draw-updated' . Other than screen capture, do you know of any way to save the drawings to a video file (similar to open xx.wav / writesf~)??
I think if animation is important you should look at Purr Data, the are a couple of examples in C:\Program Files (x86)\Purr Data\doc\4.data.structures\pd-l2ork\ds-demos
omgponies.pd and megaman.pd. Purr Data also has an extensive drawing capability and svg support.
as far as saving as video I can't help you there.
Other graphics libraries that might help are Gem and Ofelia
thanks for the pointers!
@hayasidist After seeing your post in another thread I thought about what you are trying to achieve.
This patch is a simplistic way to add pre-defined objects to a page in the order they can be replayed.
A mechanism to save and load a sequence and a simple loop.
I'm probably on the wrong track, but thought it may help get started
@Balwyn yeah - wow - thanks!! …. it is along the lines I was thinking about - even though my thoughts are still very vague about both having a graphic score as a fixed finished item but at the same time somehow showing which "notes" are being played on that score! I'm still very noobish in pd so it took me a while to get it to work - and I'm probably only using it half-optimally .. but at least it's doing "something"!
Once again a big thank you - all of this is a great help to show me what can be done and, importantly, how to achieve it!