Clarisse¶
主要提供了调用clarisse分析工具对maya资源进行相关配置文件的分析, 分析的结果保存为本地json文件,在分析的过程中会对用户传入的初始 配置信息进行校验,校验合格才开始进行文件分析。
A interface for clarisse.
-
class
rayvision_clarisse.analyse_clarisse.
AnalyzeClarisse
(cg_file, software_version, project_name=None, plugin_config=None, render_software='Clarisse', local_os=None, workspace=None, custom_exe_path=None, platform='2')¶ 基类:
object
-
add_tip
(code, info)¶ Add error message.
参数:
-
analyse
(no_upload=False)¶ Analytical master method for clarrise.
-
analyse_cg_file
()¶ Start analyse cg file.
- Examples cmd command:
"D:/myproject/internal_news/rayvision_clarisse/rayvision_clarisse /tool/Analyze.exe" -cf "E:/copy/DHGB_sc05_zhuta_610-1570_v0102.project" -tj
"c:/workspace/work/10398483/task.json"
-
static
check_path
(tmp_path)¶ Check if the path exists.
-
check_result
()¶ Check that the analysis results file exists.
-
check_workspace
(workspace)¶ Check the working environment.
参数: workspace (str) -- Workspace path. 返回: Workspace path. 返回类型: str
-
gather_upload_dict
()¶ Gather upload info.
实际案例
- {
- "asset": [
- {
- "local": "E:/copy/muti_layer_test.ma", "server": "/E/copy/muti_layer_test.ma"
}
]
}
-
get_file_md5
(file_path)¶ Generate the md5 values for the scenario.
-
save_tips
()¶ Write the error message to tips.json.
-
write_task_json
()¶ The initialization task.json.
-
write_tips_info
()¶ Write tips info.
-