bug in jit.expr ?
hi maxers,
i'm facing a strange behavior with jit.expr. the first time i trigger an operation after setting the expr, the result is not correct. the second time it's ok. see the example in my patch. maybe i'm doing something wrong...
Max Patch
Copy patch and select New From Clipboard in Max.
g
This is because the jit.expr starts out as a 1x1, 4 plane char matrix. You will either want to set these attrs in the jit.expr object (@adapt 0 @type float32) or initialize it with another matrix, jit.matrix 1 float32.
Max Patch
Copy patch and select New From Clipboard in Max.
If this is going to change, you might want to use jit.matrixinfo to set the jit.expr before the calculation.
thanks !