Hello,
Just wanted to ask if anyone knows how to use the #view_* objects (viewport type) in Python?
rt.viewport.setType('view_persp_user') gives:
-- Runtime error: The function needed argument with value: #view_left | #view_right | #view_top | #view_bottom | #view_front | #view_back | #view_iso_user | #view_persp_user | #view_camera | #view_grid | #view_none | #view_spot | #view_shape, got: "view_persp_user"
This script does work:
from pymxs import runtime as rt
t = rt.viewport.getType()
rt.viewport.setType(t)
The type of t is some max wrapper base class.
Best,
Solved! Go to Solution.
Link copied