Trying to change back the jit.matrix to the original dimention of a jit.movie after changing it to char 30 30
Hello there,
I'm just trying to make a picture have a char of 30 30 using jit movie and jit.matrix. But of course the image by downloading it is really small. I know I can add another jit.matrix object with the dimensions I want, but I want the original ones for all the pictures. Not just the dims from one picture and then manually changing them after "reading" another one.
At the moment I have connected the jit.movie to a jit.matrixinfo and this one to a route dim. I've read that I can use jit.expr, and then connect that one to the last jit.matrix to change the char values, but I am stuck and I don't know how to proceed.
Thank you for your help in advance.
Max Patch
Copy patch and select New From Clipboard in Max.
Ended up doing this for anyone who is interested:
{
"boxes" : [ {
"box" : {
"maxclass" : "newobj",
"text" : "receive original_dimensions",
"id" : "obj-7",
"patching_rect" : [ 441.0, 1113.983082234859467, 157.0, 22.0 ],
"numinlets" : 0,
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "attrui",
"fontname" : "Arial",
"displaymode" : 3,
"text_width" : 49.620026000000003,
"fontface" : 0,
"id" : "obj-8",
"patching_rect" : [ 441.183670000000006, 1148.983082234859467, 134.0, 23.0 ],
"numinlets" : 1,
"fontsize" : 13.0,
"numoutlets" : 1,
"attr" : "dim",
"parameter_enable" : 0,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrix 4 char 30 30",
"id" : "obj-12",
"patching_rect" : [ 363.0, 1196.552631497383118, 123.0, 22.0 ],
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "send original_dimensions",
"id" : "obj-60",
"patching_rect" : [ 82.0, 343.0, 144.0, 22.0 ],
"numinlets" : 1,
"numoutlets" : 0
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "route dim",
"fontname" : "Arial",
"id" : "obj-32",
"patching_rect" : [ 82.0, 306.0, 63.0, 23.0 ],
"numinlets" : 2,
"fontsize" : 13.0,
"numoutlets" : 2,
"outlettype" : [ "", "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.matrixinfo",
"id" : "obj-3",
"patching_rect" : [ 82.0, 272.0, 73.0, 22.0 ],
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "" ]
}
}
, {
"box" : {
"maxclass" : "jit.pwindow",
"presentation_rect" : [ 639.0, 194.355420351028442, 369.0, 333.0 ],
"presentation" : 1,
"id" : "obj-41",
"patching_rect" : [ 363.0, 652.0, 297.0, 320.0 ],
"numinlets" : 1,
"sync" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ]
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.movie",
"id" : "obj-17",
"patching_rect" : [ 28.0, 215.0, 53.0, 22.0 ],
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "jit_matrix", "" ]
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-12", 0 ],
"midpoints" : [ 450.683670000000006, 1185.0, 372.5, 1185.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-8", 0 ],
"midpoints" : [ 450.5, 1138.983082234859467, 450.683670000000006, 1138.983082234859467 ]
}
}
, {
"patchline" : {
"source" : [ "obj-41", 0 ],
"destination" : [ "obj-12", 0 ],
"midpoints" : [ 372.5, 975.0, 372.5, 975.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-32", 0 ],
"destination" : [ "obj-60", 0 ],
"midpoints" : [ 91.5, 330.0, 91.5, 330.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-32", 0 ],
"midpoints" : [ 91.5, 297.0, 91.5, 297.0 ]
}
}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-3", 0 ],
"midpoints" : [ 37.5, 258.0, 91.5, 258.0 ],
"order" : 2
}
}
],
"appversion" : {
"major" : 8,
"minor" : 5,
"revision" : 3,
"architecture" : "x64",
"modernui" : 1
}
,
"classnamespace" : "box"
}