hermitic-boogey-man wrote: ↑January 11th, 2021, 9:40 am
but I Already have a transformation matrix option and when I add the second It did not Work ...any Ideas
Yep, such in a case, you have to multiply together the two transformation matrices, as described in the Multiple Transformations in One! section of the
TransformationMatrix Guide. Unfortunately you can't apply two transformation matrices onto one meter and this option doesn't let you to use a TransformationMatrix2 option. This second option is simply ignored, not being a valid option. So as said, the answer of your question is that you have to multiply the matrices together.
I rewrote the matrix I posted before, reducing it a little bit. Here is the newer expression I used:
TransformationMatrix=1;0;0;#Scale#;0;([#CURRENTSECTION#:YH]*(1-#Scale#)). The second matrix used to rotate the meter is this:
Code: Select all
TransformationMatrix=(Cos(Rad([#RotateAngle])));(-Sin(Rad([#RotateAngle])));(Sin(Rad([#RotateAngle])));(Cos(Rad([#RotateAngle])));([#CURRENTSECTION#:X]-[#CURRENTSECTION#:X]*Cos(Rad([#RotateAngle]))-[#CURRENTSECTION#:Y]*Sin(Rad([#RotateAngle])));([#CURRENTSECTION#:Y]+[#CURRENTSECTION#:X]*Sin(Rad([#RotateAngle]))-[#CURRENTSECTION#:Y]*Cos(Rad([#RotateAngle])))
Now multiplying them together, accordingly to the rules of matrices multiplication, this is what you get:
Code: Select all
TransformationMatrix=(Cos(Rad([#RotateAngle])));(-Sin(Rad([#RotateAngle])));(#Scale#*Sin(Rad([#RotateAngle])));(#Scale#*Cos(Rad([#RotateAngle])));(([#CURRENTSECTION#:YH]*(1-#Scale#))*(Sin(Rad([#RotateAngle])))+([#CURRENTSECTION#:X]-[#CURRENTSECTION#:X]*Cos(Rad([#RotateAngle]))-[#CURRENTSECTION#:Y]*Sin(Rad([#RotateAngle]))));([#CURRENTSECTION#:YH]*(1-#Scale#)*Cos(Rad([#RotateAngle])))
Quite long? Yep, you probably are right, it is, however I hope it does work (it definitely does for me). So give it a try please and let me know if it indeed does.