Quick question regarding jit.pwindow/jit window
Hello, thanks for the help!
I just had a quick question, can you make the jit.window white? In the preferences I see that you can change the border, but I want the whole matrix white. I have a video that is using pak positioning and while moving through the space of the window, the background is black, but i want to change it to white. A quick patch is down below. Thank you for the help!
----------begin_max5_patcher---------- 1165.3oc0YssbihCE7Y6uBU7rGJoi.ArOk86XqoRgMJ1JCFX.btrSM+6qtwZ mYLWGCIoJGLRPfS25bZ0R9GqW4rM+EdkC5uP+CZ0perd0JcWpNVYaux4X7K6 Riqz2lyihZ2hmEYI4O6rwb8h35cGDY6uujuq17rH3.WeLl.vFD0OxEuAEhUG YxinuZ+GEI5GY91G+Bo4gkc5nHKkWqeajycleptoWv1qoq5WK3lWpiyF4enu pt5OWuVcXy.Q01S004YcAnHIf1f7.EH.bywqBEh2H.CoMvrMNa+z.yQdUU7d dSPTyeQCBGv0aC5KxiHJFiat7C4Y0Uh+U+ZIDIvZkC.OeEGXohfPEIPBZiD7 uJI.W7VyhOpeqN+coHN0YbzyskZJ4wIWkPfgPHx6xWkmqIjv1HD1mIB4gRYr fvSfS.OMMP0TiOoaNI3iHmjweVFc+FkTiHimNrEKV5vvMsKbD1ovweLcHxpu oLhRhRKSMdZIPOmfsxg0CsDcSnEnSk1M+IJtslwLgBHJDpUSvZ4jdxX.7mqL lR4afiRyyKxxqEO75joGHTSOQztoGxMQeYFLbzB+nbW88Z2i4OI3n6T7DBa9 tjWjWJkfP2cPr+v2OEmJpeEcWbRbQ8Dp+vZYIfoYQJomrLXdK.kn99iw0khW lNgtu5YgDlPWd37BbILFCXRkGFQWkokgnPa.md9wolPrlWdOOKdapNxwcka8 dkAkJxjya6NY2c.goM5ps3RhZiXtt6N56egUaFZHtvD3DIAb1wKv5zwKv9TY lYKhWFWwQaGOsXUOrydGP5NUI3lHdP6a1aMZlkowUhx6ScK4YI7RztC4EE7x wyZgQWXLlfC+MVaWdZdokgUWD6FFgIQL0YX6Yj1X4vkwizMmXM59MrJxSdVb oTQFKEjvSL0ztwCPnsfsmDznO9yt0BAVD+MTQdknVjmISRLelb8rU5mPC6ju nW2yo2GRcNECUsKNkKqbLeltbmcobXV2zC4SD8Xk1dRjvyKRikVGlr7VSRjw RkrppaV5czRoNfzFk9kc9TiJU+ukHqxOUtq4A++RFny.KgWUKxhUUgWdWu4d NHRR3YWZaLQTobRpIE7UGRGb7n1ww9iG0Vx0YDcTjTjKWxmkV.4Hpdnj5FnF Y88O2776ZwQQzBxq9CIh.+ELhXCJhfQNRaGZkJbf1XWv4lyxHcvrfBJUq.gi tDEllyBJBGDJnKX1gp1fzaETvBGQ8WSGtbQjZKytAiZ+RtG0XZBXlMjx2yEG RAe3pcQ70a9.wm4xZ1OBUWyQRJPFDbwK3..LjjTfrvQTubDcjxQM5OQlePjq 1x5R5hVyRN.cPL9XwWv4zWH.zdDZPht4r.kAMirZIJW.3gN+G34Yl.w2MjRo AdWuKL6xp2.v10r.2AMcuZIGiBtlzN.zyWRBMF2eSqlu7LK1Q0ZVvWvfxLCG YloG0rUK5es9nPypZgYp3ZXdYVvY3n3YTNiJWR2EU5llyAuRIyJJvW5QzzrW TXV3XbQwS7xJafnAfbs1OZ15N1FcSQlooNJbJ4OIZte+0pm1OW+e.zk6CcB -----------end_max5_patcher-----------
I had a look but your patch is both non-functional and unreadable…
If it’s about making the jit.gl.render background white then an ‘erase_color 1 1 1 1’ message/attribute will do.
Ill try it out thanks for that. In this particular patch I brought it back into jit matrix from gl so the video could move across the screen.. And I put a little read message so you could put your own video in.. it works for me when I use it? idk weird.
Whoops forgot the q metro lol
here it is with the q metro, just throw your own video into it.
Also I just tried and it worked! thank you very much :)
----------begin_max5_patcher---------- 1256.3ocyYssbihCE7Y6uBU7rGJcCArOk86XqsRIaq3nrXf.J21ol+8U5H7N LdL1.FbhKGrk.jOmVs5Six2WtHXcw6p5.zef9KzhEee4hEPWtNVzzdQvd46a xj0vkEXJ1sKSErxephWLYJi4iRkeLBz4l.ze2bV8V3VJV+z23GtiRoYyi57c 2Wo1X72DKlE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OLtUV .Mmir3HVXWb0jaG6.hHxUGQGiqTviMkAFZXI9M.g09ASlxbPzKtA4BJRGkCQ DvUKiBaWLOtw.R6VzTndKm423TWqYI+h5U9gGX9w7+SA3vG7TbHy9Jle5tH9 UFbRHQHDQhltlkzk0KJ4PWpK7gtaqUXwwsWu6aNKoBcFUsXofkkS2hwOt0rk eWdphbC0y5U0NJ9FFQ3d6WZ.b.AEjdXB3IghrOPTTBiFQOYWzHQ6UuvtK55Z NnDjz9jtjaXINHhtHIkDeCinjIgRLkQT+LlLPgpHRxg8qukIQeyYg6IlkrH0 G11GttcV.MmkrnWk6OxTv7xN38ZMc5WtHJZfEV8yzTqIOm8fFGR9lyR4ydoU NRT0uuCxxxWUU0MCIDJA6kO42xWwJnoN22DFwfJ0q5CWezR2n8ik+GXNSE7N -----------end_max5_patcher-----------
Alright so scratch that it works but I ran into another problem. Basically Im making a mixer, 2 videos cross by eachother and when they over lap they mix using the Jit,op @op + object. Im pretty sure I know why, but the second video that is crossing the screen just stays completely white only showing up when the videos actually add to each other.
Anyway my new question is, is there a way to make the jit.op @op object have either side as the "main" side? I believe the way the object works now is (similar to a normal + object) the left inlet is the main one that bangs the movie through, where as the right inlet is the one mixing to it. I want to know if you can make it essentially store the last video put into either inlet (left or right) and when another video goes into the opposite inlet it becomes the "main" one.
basically I want the jit.op object to be dynamic, can you do this?
Sorry for the third post in a row, I just wanted to make my question a little bit more clear. In the jit.op help file it says it applies a binary operator to two input matrices, or a unary operator to the left input.
What my above question was asking, is it possible to make that unary operator come out of either input? So if you have say a video going into the right inlet, and only have that playing (not the left one) I want it to still play as the outcome.
Thank you very much for reading and help
Jit.op indeed follows the same triggering scheme as most Max objects, only acts when receiving something in the left. This is fine in the usual setup where you have one qmetro banging all your video sources (ie. one main ‘clock’). You make sure in your data flow that the right input is always received before the left.
Now if you want it to also fire when a matrix is only received in the right inlet you can send a bang to the left inlet after the matrix in the right. That will also activate the object and it will work with whatever was previously received in the left inlet.
What you should watch out for is double triggering of your jit.op object. If you patch it so that every time a matrix is sent to the right inlet a bang is sent to the left inlet as well, you might be double triggering it when also a matrix is sent to the left inlet within the same ‘frame’, leading to unnecessary processing and potentially performance decrease.
Forums > Jitter