hey i missed this post when i was skimming the thread. if the effected object has a scale of (-1,-1,-1) then thats really simple to fix. just multiply each scale transform buy -1 ie -1*(-1,-1,-1) and that should give you the correct result. the scale and rotation are independent. you don't need to mess with rotation.
You are right. It turns out that the scale on the painted objects is [-1,-1,-1] . Now I can get somewhere. Though honestly, I'm scratching my head trying to figure out the best way to negate the negative scale to get the correct rotation info based on this. Ideas? Hints? Again, thank you all.
I wanted to share my solution that seems to work. I wanted to make some dynamic function that accounts for all scale problems (as that would be most diverse)... but since the problem seems unlikely in most circumstances, I'm stopping for now with the following code. I hope it helps someone. Essentially, if you need to have…
That only works if the scale is -1 or 1, not 0.5. (-0.5*-0.5 = 0.25) It is more stable to use an abs function, I don't know the syntax for it in Max Script but in Maya you do; $scale = `abs $scale`; Abs, absolute value, returns a non-negative value.
With static objects... 1: probably impossible unless you make some fairly big assumptions 2: see above With animation... 1.look for big changes in curves over short spaces of time(<1frame) 2. now it gets complicated.... What are you actually trying to get out at the end? Could you just reset transforms on the painted…
i'm glad you found a workaround. its quite hard to get to a specific solution on something like this unless you start posting equations in latex or posting code. but i imagine it is quite simple and probably fixable with very little work. on a side note if you wanted to do the scale on paper you would first have to…
One of my tools exports scenes/objects into a game engine. One of the problems I have encountered lately is that sometimes the orientation is incorrect. The engine requires eulerAngles but sometimes the angles are simply flipped. In the attached image, the Max scene is the original. The right is the exported scene in…
Thanks again Gray and everyone else here). Unfortunately, I'm in and out of the hospital with a family illness ... and now away from Max tonight. So I cannot give the exact code I have where the problem lies. But here is a little clearer overview. A collection of objects in the scene (say 100 teapots that are references of…
sadly i don't know spit about max script (maya guy). so no working code solution from me. -1 is a special case which gives the inverse. @shawnolson so i took a look at that pdf and i'm going to have to say its crap for learning simple matrix algebra in order to understand 3d matrix transforms. its intended for math majors…