Normal ctlmatrix in NURBS

Gewalter Benjamin's icon

So its my first time using NURBS, and I'm a bit confused on how to get a ctlmatrix back to a normal, flat plane (the way it is before you send it a random ctlmatrix). I'm sure the explanation is very simple, and I've avoided going to the forum for the answer, but I can't seem to figure it out. I suspect it involves a [jit.matrix 3 float32 1 1] with some sort of [setcell $1 $1 val ?. ?. ?.] but I can't seem to figure it out. Can anybody put me in the right direction? Here is what I have so far.

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

Rob Ramirez's icon

one way is to send the matrix through jit.expr:
[jit.expr @expr snorm[0] snorm[1] 0.]

Gewalter Benjamin's icon

exactly what I was looking for, thank you so much! i really need to start digging into jit.expr

Gewalter Benjamin's icon

i know that this is known to most, but theres an object that I had not used before that does the same thing [jit.gencoord].

just thought I would post that up here for others searching for answers.