环境配置(RenderEnv)¶
Set the rendering environment configuration.
-
class
rayvision_api.operators.env.
RenderEnv
(connect)¶ 基类:
object
Rendering environment configuration.
-
add_render_env
(render_env)¶ Adjust user rendering environment configuration.
参数: render_env (dict) -- Rendering environment configuration. e.g.:
- {
- 'cgId': "2000", 'cgName': 'Maya', 'cgVersion': '2018', 'renderLayerType': 0, 'editName': 'tests', 'renderSystem': '1', 'pluginIds': 2703
}
返回: - Render env info.
- e.g.:
- {
- 'editName': 'tests'
}
返回类型: dict
-
delete_render_env
(edit_name)¶ Delete user rendering environment configuration.
参数: edit_name (str) -- Rendering environment custom name.
-
get_render_env
(name)¶ Get the user rendering environment configuration.
参数: - name (str) -- The name of the DCC.
- e.g. -- maya, houdini, 3dsmax
返回: - Software info.
- e.g.:
- [
- {
"cgId": 2000, "editName": "testRenderEnv332", "cgName": "Maya", "cgVersion": "2020", "osName": 0, "renderLayerType": 0, "isDefault": 0, "respUserPluginInfoVos": [
- {
"pluginId": 1166, "pluginName": "wobble", "pluginVersion": "wobble 0.9.5"
}
]
}, {
"cgId": 2000, "editName": "testRenderEnv222", "cgName": "Maya", "cgVersion": "2020", "osName": 0, "renderLayerType": 0, "isDefault": 0, "respUserPluginInfoVos": [
- {
"pluginId": 1166, "pluginName": "wobble", "pluginVersion": "wobble 0.9.5"
}
]
返回类型:
-