Multiple patches to a single window
I have a few patches that I would like to have appear in a single main window, and I would also like to be able to mix some of them together or alternate their appearance in said main window. I would also like to be able to record both the image and the audio of said main window. Here is a small example of what I am doing...
In the example, on the right, there are the patches and at the moment there are two, but I hope to understand the solution and learn it to add more patches to the main window.
Thank you very much in advance for your time and dedication.
Seems like you're looking for [bpatcher].
You will also probably want to use presentation mode.
To change the bpatcher visibility and position, you can change its patching_rect
or presentation_rect
attributes as well as its hidden
attribute. For this, have a look at the [thispatcher] helpfile, especially in [p moreScripting] and [p sendbox].
Well, thank you. I'll try it tonight... I have to go to work now.
I'm sorry but I don't quite understand it. Here's a simplified example. If someone can fill in the missing "gaps", I'd be extremely grateful. From there, I think I can figure out how to continue the process with more patches and more windows. As I said, it's all about being able to send the window I want
to the main window.
Again, thank you very much for your time.
post your patches in compressed form.
select all - edit - copy compressed- paste here.
otherwise one has to download your patch to local hard drive, delete it later an so on.
I hope this works out....
My apologies.
You are not trying to combine patches , but video output from several sources.
Maybe change your title to make it more understandable
for anyone that feels like replying.
Video is not my domain, so ...
You are not trying to combine patches , but video output from several sources.
Ah thanks!
A lot of things get confused here:
You need only 1 [jit.world] in your main patch, that's all.
Each subpatch/visual should be drawn in their own [jit.gl.node]
Remove all [jit.gl.asyncread], you don't need them for what you want to do. Use
@capture 1
on the jit.gl.node instead.Remove all [jit.gl.render], you don't need them as you already have a [jit.world]
Be careful with context naming. jit.world has a name (I named it "main"). jit.gl.nodes each have an individual name (
@name nodo_1
and@name nodo_2
) and they@drawto main
. GL objects need to be drawn to their correspond node, ie adding@drawto nodo_1
or@drawto nodo_2
to your jit.gl.mesh (or setting their first argument tonodo_1
ornodo_2
, it's the same).Still not sure how you want to be able to mix your various visuals. Here is a basic mix example allowing you to fade between the result of both subpatches.
Thank you so much. This is what I was looking for. What I don't see working is the combination of both... I hope to fix it on my own, if not, I'll come back to you!
Thanks again for your time!
If you set a crossfade value between 0. and 1. (like 0.5) it will mix both visuals.
Exactly! I realized this shortly after.
Thanks again!