Message 1 of 8
[SOLVED] MAX 2020 Viewport Change callback BUG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
try this simple test:
callbacks.removeScripts id:#viewport_changed
fn on_vp_changed =
(
format "% %\n" (timestamp()) #changed
)
callbacks.addScript #viewportChange "on_vp_changed()" id:#viewport_changed
It works as expected in my MAX 2020, sending notifications for every “change” to the viewport, including Pan and Zoom actions. But only when the scene is empty. As soon as I make any visible objects, the Pan and Zoom notifications disappear.
You can hide or remove nodes from the viewport... and the notifications come back.
This problem is not present in MAX 2023.
So, could you please confirm or deny me this problem?