Save and recall the state of a matrix +index
I’d like to be able to output a matrix with jit.bfg (greyscale data, 8 planes) into another jit.matrix and then save the state of that jit.matrix as a preset.
Have multiple presets and be able to save and export this data. I saw that I can read and write a matrix file individually but I’d rather just do this with an index system so that everything is loaded at once.
I checked the forums but just can’t seem to find a solution.
And and all help would be greatly appreciated.
[jit.submatrix] might be your friend.
or fill a multislider with your matrix data and save the multislider state in your preset system… there is a good example Andrew benson’s receipes
jit.submatrix only allows you to sample a portion of a matrix not save it in any form.
I think using 8 multisliders for 8 planes of data would use way too much cpu than I’d need.
Any other solutions anyone ?
apologies i ment [jit.marixset] and not [jit.submatrix], my bad
i don’t know you can record 8 planes with [jit.qt.record] but with some workaround you could then read your matrices back as frames with a [jit.qt.movie] also…
you don’t specify the dimensions of your matrices ?
Sorry for the late reply.
I need to keep all 8 planes of data because I’m using them to distort and manipulate open GL models. so plane 1 is the x co-ordinate of a vertex, plane 2 the y co-ordinate (well thats the idea of it) This is why jit.qmovie won’t work as I’ll lose all the planes.
For now I’ve just used a sel object to bang a read message which loads the matrix state. This works, but I’d rather know if theres an index system or something else that I can use.
I tried jit.matrixset but this won’t work because I ned to load all the different matrices at start up.
The dimensions of the matrices don’t matter and vary according to each model that I load.
You wrote: "I tried jit.matrixset but this won’t work because I need to load all the different matrices at start up."
jit.matrixset has ‘write’ and ‘read’ messages that allow you to store and recall its contents in a file, just as you would do with most presets.
----------begin_max5_patcher---------- 856.3ocyXtsaiBCDF95jmBuVqzdS2HaygP161miUqpbBtINBrQFSSZq5695C PNroPnUTRuAjGLlY93eFFyKSm.WJ2yJgfeA9CXxjWlNYhyj0vj5wSf4z8qxn ktoAWIyyYBM7N+0zr8Zm8mjUfUxprTfVwWulo.5M7RvNtdCHSRSWREqatoLt fYlqvcmjZiOnVuzNFMC0XQJzk7mYVqXxAyhpbtHioc9C9nQYktwZyTKn5Ua3 h02qXqz9nLDYe..LNXVj8jccAAAyPf+VeS7TW.IWt8m3.3I9hfl67E3uUbZF zdgWmN0d3tdBubVYIcM6B3sSw0L36HraflOl0OUv7QGDdHLNmH31IRDIwQjv PGJhcCRdafrXb3ghQSuY3Xd7o3HpKbDMd3.j+DNtPwJMQvrs6e3Vgml7GOdv DRW7gLl4OeUHDYN4LBEzIgPCKgZq7rw8nYY.ovfIpoB8d33V1EapqXp2F4xs VrvdjfZonax3HZLNdQk1SCv2w2J4BNFehbYQmpEb7vhFiStjoZVSS.xyqxO8 M46QKXV4laGG0Ff3VsI.55FnEVQtJq7IXQnNUQgcfpCOAkwtlotmInKyby.M fIcOvMob+vzJTUw2F87MGhboaQIcBJxvpoVVo0RArqn3BUQWxgNRcBHGUCjt UCngrxAWjxtkkLVbZGJQc1v1.WKUv1YV0K.xVtdlPxKYfDvpMTkIQEbdsp9J vu.Olk99luX0NrHWSjf85CLA2kLIdTnU0ybKfPCh7wuupimsEXaARAWCRdcU RPWHJbXQjU4TryjPI289JY7AUC9Pj3ahM4vw2JRCF3DDuJ1zcp8k+Wu7j5hJ 0694Jeyneh.2s51s++8KFbOdq8yIYorRspIfp2tI3nCjxJ0bAUyMed43bvmM mM7zTl3zONlySKjlrhZWHJXtai+wItSnnCiN9b3k1tARaucf95+QeB9eRz34 +ICf+ObdS7vSyPbC9PmASzm.LMUNAjq39IiFLC6ALiGMuw9iBF72snEiWlhc e7Cc.PRviW.f+DxtvyQiX.zGEMd7jz39nHBGO2oGdSvGza7emmVT7HSUVujN GwzazVoxNL9to9+vfenqMFnh8HuY9tlSgTkosDsomjJkumh8IwlNJLOmWm9O M++puC -----------end_max5_patcher-----------
Christopher, that is such an amazing simple patch ! Thank you so much !
Problem solved :)
Forums > Jitter