Hello,
I’m continuing my journey with the API and have created a command that does some calculation with vectors, I would like to supply a matrix as an argument to transform the vectors into a different space (if desired).
I hoped that in the MSyntax class there would be a kMatrix or k4x4Matrix property, unfortunately not. Then I remembered how to pass a vector
syntax.addFlag(short_name_flag, long_name_flag,
(om.MSyntax.kDouble, om.MSyntax.kDouble, om.MSyntax.kDouble))
So I thought I could pass a matrix as a list of 16 kDouble but that doesn’t seem to work. Does anyone have experience with using a matrix as flag argument and could point me in the right direction?
Thanks,
-Harry