viewtransform command

Gets/sets projection data for a viewport.

Replaced by: hou.GeometryViewportSettings

All Usages Options Examples

Usages

  1. viewtransform [-p] [-v version] viewport [parameter ( value ) ...]

See how to refer to viewers and viewports .

Options

-p

Prints the command that would recreate the current state of the viewport, in the form of a viewtransform command with every parameter set.

parameter ( value )

Set parameter of viewport to value. Use the -p option to show available parameters.

Examples

viewtransform -p Build.pane1.world.persp1
Display the viewing parameters of Build.pane1.world.persp1.

viewtransform Build.pane1.world.persp1 orthowidth ( 4.5 )
Change the orthographic width to 4.5 in the specified viewport. To change more parameters, add them and their values to the command after the viewport argument.

viewtransform Build.pane1.world.persp1 flag ( +a ) aspect ( 1.333 )
Turn on the use of the aspect ratio and set it to 1.333.

viewtransform Build.pane1.world.persp1 flag ( -a )
Turn off the use of the aspect ratio.