Constructor#
- NyxSceneExporter.__init__(scene, export_folder, cameras=None, lights=None, asset_root_path=None, env_maps=None, light_fields=None)[source]#
Build the Nyx
SceneAssetfrom a Genesis scene.Runs the full export pipeline (instance / camera / light / env-map / light-field build) immediately; call
export_to_file()after construction to serialize the result. Asset side effects (e.g. MJCF / procedural-mesh.objexports) are written underexport_folderduring construction.- Parameters:
scene (genesis.Scene) – Built Genesis scene to export. All entities with
morph.visualization=Trueand a renderable type are included.export_folder (str) – Directory under
__nyx_cache__/where the scene JSON and any per-vgeom.objfiles are written. Must already exist.cameras (list of dict or list of genesis.Camera, optional) – Cameras to write into the scene description. Pass camera-definition dicts (the format produced by
NyxCameraSensor.build()) when driving the renderer through Nyx sensors. WhenNone, the scene’s non-debug GenesisCameraobjects are exported instead.lights (list of gs_nyx.nyx_py_sdk.LightAsset, optional) – Lights to include.
None(default) means no lights.asset_root_path (str, optional) – Root prefix recorded in the scene description for resolving relative asset paths. Defaults to empty string (paths are relative to
export_folder).env_maps (list of gs_nyx.nyx_py_sdk.EnvironmentMapAsset, optional) – Environment maps to include.
None(default) means none.light_fields (list of gs_nyx.nyx_py_sdk.LightFieldAsset, optional) – Pre-baked light fields to include.
None(default) means none.