Skip to content

Instantly share code, notes, and snippets.

View vaticanshadow's full-sized avatar

vaticanshadow

View GitHub Profile
@SEVEZ
SEVEZ / PS_perspOrthoToggl_v3.py
Last active January 11, 2024 10:50
Switch between perspective and matching orthographic view. The latest version is v3. #Release
# Latest version, uses Tumble Pivot Point viewport
# feature, and proprietary algorithm, works in all recent
# versions of Maya, Python 2.7 / 3+. Gives more predictable
# and stable results.
# Pavel Sevets 2022
import maya.cmds as mc
import maya.api.OpenMaya as om
from math import pi