Grasshopper Docs

Community documentation for Grasshopper add-ons & plugins

Creation
Display
Document Info
Document Modifications
Misc
Reference
Texture Mapping

Get a list of viewports and their properties

Inputs

NameIDDescriptionType
UpdateUToggle this to force an update when autoupdate is not active.Boolean
Auto UpdateAUSet to true to listen for certain changes to viewports. It will update the component when the active viewport changes, or when viewports are added, destroyed, or renamed.Boolean

Outputs

NameIDDescriptionType
Viewport NamesVPThe list of viewportsText
Active Viewport IndexIThe index of the currently active viewportInteger
Viewport BoundsBA rectangle for each viewportRectangle
Viewport Display ModeDMThe english name of the display mode for each viewportText
Camera LocationCLThe location of the camera in each viewportPoint
Camera TargetCTThe location of the camera target in each viewportPoint
Camera PlaneCPThe camera plane for each viewportPlane
Camera Lens LengthCLLThe 35mm lens length of the camera in each viewportNumber
Camera ProjectionCPrTrue if the camera is a perspective projectionBoolean
Camera UpCUThe up vector for the camera in each viewportVector

Video Tutorials

Site design © Robin Rodricks.   Human and associated data © 2023 Andrew Heumann.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service