forked from blender/blender
Create possibility to provide render settings via BlenderSceneDelegate #41
@ -23,14 +23,13 @@ class CustomHydraRenderEngine(HydraRenderEngine):
|
|||||||
|
|
||||||
def get_sync_settings(self, engine_type):
|
def get_sync_settings(self, engine_type):
|
||||||
|
|||||||
return {
|
return {
|
||||||
'setting1': True,
|
'MaterialXFilenameKey': "MaterialXFilename",
|
||||||
'setting2': "2",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_render_settings(self, engine_type):
|
def get_render_settings(self, engine_type):
|
||||||
return {
|
return {
|
||||||
'setting1': 1,
|
'enableTinyPrimCulling': True,
|
||||||
'setting2': "2",
|
'maxLights': 8,
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
@ -80,9 +79,18 @@ class HydraRenderEngine(bpy.types.RenderEngine):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def get_sync_settings(self, engine_type):
|
def get_sync_settings(self, engine_type):
|
||||||
|
"""
|
||||||
|
Provide settings for Blender scene delegate. Available settings:
|
||||||
|
`MaterialXFilenameKey` - if provided then MaterialX file will be provided directly to render delegate
|
||||||
|
without converting to HdMaterialNetwork
|
||||||
|
"""
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
def get_render_settings(self, engine_type):
|
def get_render_settings(self, engine_type):
|
||||||
|
"""
|
||||||
|
Provide render settings for render delegate. List of settings should be available in render delegate
|
||||||
|
documentation or in `pxr.UsdImagingGL.Engine.GetRendererSettingsList()`
|
||||||
|
"""
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
# final render
|
# final render
|
||||||
|
Loading…
Reference in New Issue
Block a user
Consider to add a note that these settings refer to keys that Hydra asks.