I need to determine if mouseTrack() is running. Every command mode in 3ds Max is stacked internally and can be interrogated by:
Unfortunately only standard modes like transformations and select are mapped to readable names like #move, #rotate, #scale, and so on. I found out mouseTrack commandMode returns the number 3247. It should be the number registered in the mouseTrack dll and should be static for every 3ds Max version, anyway, I need to confirm it before relaying on such belief.
Follows a simple script to run the test. Evaluate it and as soon as the created Sphere disappear, read what the listener says: "commandMode is mouseTrack" if the code number was right or "commandMode is: XXXX" if it wasn't recognized. Please post your code number in case of failure.
Thank you very much.
local oMesh = convertToMesh (Sphere())
function doTest msg ir obj faceNum shift ctrl alt =
if (toolMode.commandMode == 3247) then
format "commandMode is mouseTrack\n"
format "commandMode is: %\n" (toolMode.commandMode)
mouseTrack on:oMesh trackCallback:doTest