GetViewportUnderMouse.2.js Example

Applies To

GetViewportUnderMouse command

Description

Get the type of view embedded in the viewport under the mouse

Code

var oVM = Application.Desktop.ActiveLayout.Views.Find( "View Manager" );
var oView = oVM.Views( GetViewportUnderMouse() );
Application.LogMessage( oView.FullName + ", " + oView.Type );
// Logged message will be similar to this:
//INFO : B, Explorer

Related Examples

GetViewportUnderMouse.1.vbs

Keywords

GetViewportUnderMouse


Autodesk Softimage 2011