Hi guys,
Part of a script I’m writing needs to make a UVW mapping modifier align the mapping gizmo to “View Align”.
The Listener doesn’t return any values on View Align pressed and the maxscript help doesn’t seem to have the information I was hoping for.
I did find this section
<Uvwmap>.gizmo SubAnim
<Uvwmap.Gizmo>.position Point3 default: [0,0,0] – animatable
<Uvwmap.Gizmo>.rotation Quat default: (quat 0 0 -1 0) – animatable
<Uvwmap.Gizmo>.scale Point3 default: [1,1,1] – animatable
I’m guessing that I have to get the view matrix of the camera and apply it to the <Uvwmap.Gizmo>.rotation, I’m unsure as to how to do that and I’m probably barking up the wrong tree.
Any help would be appreciated.