OpenUSD Light & Camera
Create cameras (UsdGeomCamera) with standard lens properties, DistantLight
SphereLight with angle/radius, intensity, and color controls, plus DomeLight
with HDR environment texture and exposure controls. Also
provides set_transform for positioning any Xformable prim and set_visibility
for beauty/FX layer control on Imageable prims. Requires the pxr
OpenUSD runtime.
Workflow
- Ensure a stage exists.
- Create a camera with
create_cameraand place it withset_transform. - Create lights (
create_distant_light,create_sphere_light, orcreate_dome_light) and place them. - Use
set_transformto position any Xformable prim. - Use
set_visibilityto include or exclude Imageable prims from a render layer.