vrGUIService

vrGUIService

(继承 vrBaseService

DialogType

定义某种类型的文件对话框,例如,打开/保存纹理。

Texture

纹理文件对话框。

MeasuredMaterial

用于已测量材质文件(例如爱色丽)的对话框。

SubstanceArchive

Substance 归档文件对话框。

MDLArchive

MDL 归档文件对话框。

MaterialXArchive

OpenVDB

OpenVDB 文件对话框。

ViewCubePosition

定义 ViewCube 的位置。

TopRight

BottomRight

TopLeft

BottomLeft

ViewCubeSize

定义 ViewCube 的大小。

Automatic

适应极小和正常之间的渲染窗口大小。

Tiny

Small

Normal

Large

摘要

函数:
信号:

函数

vrGUIService.addMainWindowToolBar(toolbar)

将工具栏添加到主窗口,同时向工具栏菜单添加条目。

参数:toolbar (QToolBar) - 要添加的工具栏
vrGUIService.getFileDialogPath(type)

返回用作给定类型的文件对话框的初始路径的路径。

参数:type (vrGUIService.DialogType) - 对话框的类型,例如 vrGUIService.DialogType.Texture 表示用于加载/保存纹理的文件对话框。
返回值:路径
返回值类型:string

vrGUIService.getViewCubeOpacity()
返回值:ViewCube 不透明度
返回值类型:float

vrGUIService.getViewCubePosition()
返回值:ViewCube 位置
返回值类型:vrGUIService.ViewCubePosition

vrGUIService.getViewCubeSize()
返回值:ViewCube 大小
返回值类型:vrGUIService.ViewCubeSize

vrGUIService.isNavBarVisible()
返回值:如果导航栏可见,则为 True
返回值类型:bool

vrGUIService.isViewCubeVisible()
返回值:如果 ViewCube 可见,则为 True
返回值类型:bool

vrGUIService.openExportDialog(file, nodes)

打开给定节点的导出对话框。

不会触发自动导出。仍然可以修改导出设置。

参数:
  • file (string) - 文件路径
  • nodes (List[vrdNode]) - 要导出的节点的列表

vrGUIService.openExportSceneDialog(file)

打开场景的导出对话框。

不会触发自动导出。仍然可以修改导出设置。

参数:file (string) - 文件路径

vrGUIService.openImportDialog(files, parent=vrdNode())

打开包含给定文件的导入对话框。

不会触发自动导入。仍然可以修改导入设置。

参数:
  • files (List[string]) - 要导入的文件的列表
  • parent (vrdNode) - 场景树中应添加这些文件的父节点。

vrGUIService.removeMainWindowToolBar(toolbar)

从主窗口移除工具栏,同时从工具栏菜单中移除条目。

参数:toolbar (QToolBar) - 要移除的工具栏

vrGUIService.setFileDialogPath(type, path)

设置应用作给定类型的文件对话框的初始路径的路径。

如果给定了完整文件路径,例如,“e:\test\myfile.abc”,则会自动移除文件名。对于网络路径,必须使用正斜杠,例如:“//server/directory/”。

参数:

vrGUIService.setNavBarVisible(value)

更改导航栏的可见性。

参数:value (bool) - 如果为 True,则导航栏可见

vrGUIService.setViewCubeOpacity(value)

如果鼠标位于立方体区域之外,则更改 ViewCube 的不透明度。

参数:value(float) - 新的不透明度

vrGUIService.setViewCubePosition(value)

更改 ViewCube 位置。

参数:value (ViewCubePosition) - 新位置

vrGUIService.setViewCubeSize(value)

更改 ViewCube 大小。

参数:value (ViewCubeSize) - 新的 ViewCube 大小

vrGUIService.setViewCubeVisible(value)

更改 ViewCube 的可见性。

参数:value (bool) - 如果为 True,则 ViewCube 可见

vrGUIService.viewInNewRenderWindow(nodes)

为给定节点打开新的渲染窗口。

参数:nodes (List[vrdNode]) - 要显示的节点的列表

信号

vrGUIService.colorThemeChanged(newTheme)

颜色主题更改时,将发射该信号。

参数:newTheme (vrStyleTypes.ColorTheme) -

vrGUIService.recentFilesChanged()

更新最近使用的文件列表时,将发出此信号。

vrGUIService.recentFilesCleared()

清除最近使用的文件列表时,将发出此信号。