Hello people! Does anyone know why the callback script with #viewportChange didn't run the callback when the distance < 1000? It's fine with rotating the viewport on any distance, but it's not the same case with zoom in/out. Might be a little bit hard to explain with word, but here is the script that I got and you can see…
I don't know if the problem is another script. Add some debug lines of code and try to find why the script not works when the distance is less than 1000.
I asked my friend to test the script on his Max without any of my custom script and the problem was similar with my case...hmm, debug lines?care to explain abit more, miauu?
The script works on 3dsMax 2014. Reset the viewports, run the script when the Perspective vpt is active and the distance is 250.0. Zooming in and out and in the listener the pirnted values are correct()for example 12,56, 21831.6)
Hi miauu, thanks for testing the script. But here I'm using 3ds max 2014 as well, and funny that's not the case here..rotate the viewport printed fine on any distance, but zoom in/ out only printed above distance 1000..is it possible that it's affected by other script?
Oh man, reinstalling doesn't seems like a good idea for me right now haha! Hey miauu, what about (un)registerRedrawViewsCallback? do you have experience with it? From a simple test that I did, it seems like slow down max quite noticable.. It call the script anytime the viewport redraw including editing the object, but…
It might be a little bit hard to see with all the other codes, I didn't see any problem with my script so I tried to strip it down to be as basic as possible;( global test fn test = print "test" callbacks.removeScripts #viewportChange id:#vpUpdate callbacks.addScript #viewportChange "test()" id:#vpUpdate) .. and it is…
Your conclusions are right. Depends of the scene the slow down may be unnoticable for registerRedrawViewsCallbacks, but sometimes... :) Edit: Watch this video to see that your script works.