reyan Posted December 8, 2022 Share Posted December 8, 2022 (edited) Hello wizards, i'm trying to get the camera from the current stage and then get the frustum I'm following the Pixar API, but probably i'm missing something... Here my code: from pxr import Usd, UsdGeom, Sdf node = hou.pwd() stage = node.editableStage() # Add code to modify the stage. # Use drop down menu to select examples. camera=stage.GetPrimAtPath('/cameras/camera1') gfCam = UsdGeom.Camera(camera).GetCamera(1.0) frustum = gfCam.GetFrustum() Problem: GetFrustum() gave me an error, it seems that is not a method of the camera class, but it should... Any idea ? Edited December 8, 2022 by reyan Quote Link to comment Share on other sites More sharing options...
jiejia Posted December 8, 2022 Share Posted December 8, 2022 (edited) use gfCam.frustum instead. You can use dir(gfCam) to get all the attribute and method of an object. Edited December 8, 2022 by jiejia Better description Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.