Creating a square around the tracking point
Hey guys I am trying to create a patch that changes audio effects based upon movement of a tracking object (based upon X,Y positions).
My problem is i want to create a shape on screen which can be moved which is reliant on the tracked object.
Please help, been looking all over to try and figure this out!
Here is my code
the patch i just posted here should help you get started:
https://cycling74.com/forums/rotate-shape-on-pivot
Thanks a lot, but a few items don't seem to be working within the patch :(
zl.slice 2
jit.anim.drive @turn 0 0 1 @speed 100
Are they externals?
Ah think I will just give up, its due tomorrow and don't think i can get my head round it, thanks for the help though :)
those two objects are probably max 6 related, I'm guessing here that you're on max 5?
You probably don't need the jit.anim.drive, and zl.slice can be replaced with "zl slice 2" without the . in there, if I'm not mistaken?
Will give it a try thanks
And yeah I have Max 5.1
Here is my code with your patch implemented, but I've done it wrong some how. Kind of a beginner with Max and struggling hard! Would appreciate if someone could have a quit problem solve, think I have like a link not connected or something
i would use jit.lcd to draw the rect and then copy it into the matrix