rendering videoplanes in a loop issue

kundi's icon

Hello,

I'm new to max msp and I've been struggling with getting my first VJing setup ready. I want to split video into multiple columns and rows which are defined with an integer. Each cell should have video resized and moved (using videoplane) to the appropriate position, so the output would be X columns and Y rows with the same input video.

I'm trying to create a loop with uzi patch, but the biggest issue is how to pack the dimensions of each video and position and send them to videoplane to render cells at appropriate positions and size.

Why does videoplane complains when I call it with:
jit.gl.videoplane win3 @scale $1 $1 $1 @position 0.2 0.4 0

$1 is a signal from a pack node (float type).

I'm attaching my current attempt :)

Any help is highly appreciated!

test2.png
png
LSka's icon

You'd better use the "copy compressed" feature of Max to share your patches.

Max Patch
Copy patch and select New From Clipboard in Max.

Anyway, I see a couple of errors:
1st, you're sending a float to a [pack i i i] object, hence rounding floats to integers. See patch below:

Max Patch
Copy patch and select New From Clipboard in Max.

2nd, you're setting attributes to objects the wrong way. See here: