Reputation: 53
I have found a few Autodesk.Viewing.SOME_EVENT events floating around in samples, currently using these:
viewer.addEventListener(Autodesk.Viewing.SELECTION_CHANGED_EVENT, selectionChanged);
viewer.addEventListener(Autodesk.Viewing.GEOMETRY_LOADED_EVENT, geomLoaded);
viewer.addEventListener(Autodesk.Viewing.OBJECT_TREE_CREATED_EVENT, treeCreated);
but cannot find any documentation enumerating all the possible events (there are scripts ive seen to subscribe to all event listeners: event monitor
but that information should be in the documentation somewhere right?
Upvotes: 2
Views: 2508
Reputation: 5342
Try here:
All frequently used events are listed and briefly documented there.
Upvotes: 4