Points

offonoll's picture

Hi! I attached a sample of what I would like to make. With the adding points as a structure I would like to link them with a line. The sample only works for the first two points. so it is useless. How can I link a line to all point i want?

Thank you!!!

PreviewAttachmentSize
DropPointsExample linking points.qtz22.08 KB

cwright's picture
Re: Points

You're only using index 0 and 1, so of course it'll only draw between those two points. Try using the iterator variables Current Index output, and a math expression patch to do "index + 1", and use both of those for your structure indexes.

PreviewAttachmentSize
indexing.png
indexing.png256.03 KB

offonoll's picture
Re: Points

Hey!! I am so happy!!!!! I am like a kid drawing spidernet. Thank you so much cwright!!!

may be it was known before but I attach the sample!

:D

PreviewAttachmentSize
DropPointsExample linking points OK.qtz22.41 KB

gtoledo3's picture
Re: Points

One idea might be to add a counter that will only turn on the line patch after you hit more than one point... that way it will give a bit of polish and you won't have the little line bit hanging out on your first point clicked. It will basically make it to where line is only getting drawn if you have more than one point.

I think somewhere on here I have an example that uses lfo/interpolate setup like this to draw a pattern and then erase it every so often...

I'm thankful for that drop points that "kristopf" (I believe) posted! After looking at it, it was kind of obvious, but I guess it wasn't so obvious to everyone before that!

If you're going to try to use this info to effect other onscreen geometry, but where glitches can't happen... I'm crying for you Oscar :) It's hard to get points to not mistrack with any kind of decent movement. It's even harder if lighting changes in any way, because your tracking goes out the window.

offonoll's picture
Re: Points

Hey! nice shot! Yes, now I like it too, but I would like to add this option also obvious, if you like those lines to go to a center screen, add same number as integers you have.

BTW what is the math expression for modulo??

Thank you George!!