Object Hierarchy | Related C++ Class: View
SIObject UIObject UIPersistable View
The View object represents an instance of a view in Softimage. Most windows embedded in the current Layout as well as free floating windows are represented as View objects.
Softimage comes with many types of views built in, including Netview, the Script Editor, the Render Tree, and the Explorer. Toolbars and Shelves are also a type of view (except for Toolbars created with early versions of Softimage). And Relational Views are a type of view that combine other view types together within a single view window.
The Property Page window (see the PPG object) is not a type of View, but it can be embedded inside a view of type "Property Panel", as demonstrated in the example below.
The View object also allows you to manipulate the four Softimage viewports by creating an instance of the View Manager via Layout.Views("vm") and then customizing it using View.SetAttributeValue with the View Manager Attributes.
Views are accessible from the Layout.Views method (or from the View.Views method if the view is a relational view). To instantiate a View object inside a free floating window call Layout.CreateView.
With view objects, you can:
- Change the view state such as closed and minimized state.
- Change the view position and size.
- Hide/unhide the view.
- Access to specific view attributes such as the Explorer scope and NetView URL.
- Edit view attributes in bulk mode to avoid the UI to flicker.
- Iterate over the sub views of a relational view.
Some of these tasks can be performed using methods implemented on the View object (View.Move, View.Resize, View.Visible, etc.); however, many specialized tasks, such as changing the scope and selection in the Explorer or maximizing a single viewport window can only be accomplished via the View.SetAttributeValue and View.GetAttributeValue methods. See View Attributes Reference for a list of attributes available for different views.
• See View.1.js
• See View.2.pys
• See View.3.js
• See View.4.js
Autodesk Softimage 2011