Created
January 13, 2022 19:04
-
-
Save spatial-bit/4be2d02ffb2657a9040322b6950873e5 to your computer and use it in GitHub Desktop.
USD create camera #USD #OMNIVERSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USD create camera and set attributes | |
import omni.usd | |
from pxr import UsdGeom, Gf, Usd, UsdGeom, Vt, Sdf | |
stage = omni.usd.get_context().get_stage() | |
camera = UsdGeom.Camera.Define(stage, f'/Motions/my_camera0') | |
camera.CreateClippingRangeAttr().Set((1,1000000)) # e.g. (1, 1000000) | |
# camera.AddTransformOp().Set(tx) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment