XPresso Context Menus
上下文菜单
In the XPresso Editor, the context menu provides quick access to commands that are specific to nodes, XGroups and ports. Some of these commands are available from the context menu only. The commands shown vary, depending on whether you access the context menu while the mouse pointer is over a node, XGroup or port.
在 XPresso 编辑器中,上下文菜单提供了对特定于节点、 XGroups 和端口的命令的快速访问。其中一些命令只能从上下文菜单中使用。显示的命令有所不同,这取决于当鼠标指针位于节点、 XGroup 或端口上时是否访问上下文菜单。
If you access the context menu while the mouse pointer is over an empty space in the XPresso Editor, the commands for XGroups are also shown. This is because the XPresso Editor is filled by the base XGroup, which is created automatically for each new expression. The base XGroup’s title bar is shown just below the XPresso Editor’s menus.
如果您在 XPresso 编辑器中鼠标指针位于空白空间上时访问上下文菜单,那么 XGroups 的命令也会显示出来。这是因为 XPresso 编辑器是由基本 XGroup 填充的,基本 XGroup 是为每个新表达式自动创建的。基本 XGroup 的标题栏显示在 xpressoeditor 菜单的下方。
To open a context menu:
要打开上下文菜单:
Right-click on a node, XGroup, port or empty space in the XPresso Editor.
在 XPresso 编辑器中右键单击节点、 XGroup、端口或空白空间。
Context menu for nodes and XGroups
节点和 XGroups 的上下文菜单
Some of the following commands are available for both nodes and XGroups, while the others are available for nodes only or XGroups only.
下面的一些命令可用于节点和 XGroups,而其他命令仅可用于节点或 XGroups。
空 XGroup
This command creates an empty XGroup. To place nodes and other XGroups into the empty XGroup, drag them from the XPresso manager and drop them into the empty XGroup. Alternatively, cut or copy the elements, select the empty XGroup and paste the elements into it.
这个命令创建一个空的 XGroup。要将节点和其他 XGroups 放置到空的 XGroup 中,请将它们从 XPresso 管理器中拖动到空的 XGroup 中。或者,剪切或复制元素,选择空的 XGroup 并将元素粘贴到其中。
新节点
To create a new node, choose the desired node. Nodes that belong to the Cinema 4D core application are listed in the XPresso sub-menu.
若要创建新节点,请选择所需的节点。属于 Cinema 4D 核心应用程序的节点列在 XPresso 子菜单中。
This command is the reverse of Convert To XGroup. The selected XGroup is deleted and its nodes and wires are moved to directly within the XPresso Editor.
此命令与 Convert To XGroup 相反。删除所选的 XGroup,并将其节点和连接直接移动到 XPresso 编辑器中。
转换为 XGroup
This command creates a new XGroup and moves all selected nodes and XGroups, including their wires, into the new XGroup.
这个命令创建一个新的 XGroup,并将所有选定的节点和 XGroups (包括它们的连接)移动到新的 XGroup 中。
对齐到网格
The selected nodes and XGroups are aligned to the grid.
选定的节点和 XGroups 与网格对齐。
变焦
Here you can choose from various preset zoom levels.
在这里,您可以选择各种预设缩放级别。
查看
Use the commands in the View sub-menu to set the windows of the selected nodes and XGroups to a particular size. For example, you can conserve display space in the XPresso Editor by minimizing an XGroup once you are done editing its contents.
使用 View 子菜单中的命令将选定节点和 XGroups 的窗口设置为特定大小。例如,一旦编辑完 XGroup 的内容,就可以通过最小化 XGroup 来节省 XPresso 编辑器中的显示空间。
Minimized reduces the window to its title bar only; this has the same effect as double-clicking the title bar. Standard returns a minimized or full-screen window to the last size it had when you manually resized it. Extended mode returns the window to its previous size when you last manually resized it. With full-screen, the window is magnified to fit the XPresso Editor window.
“最小化”仅将窗口减少到其标题栏; 这与双击标题栏具有相同的效果。标准返回一个最小化或全屏窗口到最后的大小,当您手动调整它。扩展模式使窗口恢复到上次手动调整大小时的大小。全屏幕,窗口是放大,以适应 XPresso 编辑器窗口。
If Locked is selected, the contents of the XGroup are hidden and can no longer be edited. The XGroup is scaled to its Standard size. Use Locked when you want to protect the XGroup from accidental changes while you are working on other parts of the expression. To unlock the XGroup, choose Locked once more.
如果选择了 Locked,则 XGroup 的内容将被隐藏,不能再进行编辑。XGroup 被缩放到它的标准大小。在处理表达式的其他部分时,如果希望保护 XGroup 免受意外更改的影响,请使用 Locked。若要解锁 XGroup,请再次选择“锁定”。
内容
This sub-menu provides access to the same commands as the XPresso Editor’s
这个子菜单提供对与 XPresso Editor 的 View 菜单相同的命令的访问。特别是,这些命令使您能够在 XGroup 中居中或对齐节点和 XGroups。这对于将不在视图中的节点和 XGroups 带回视图中非常有用。
Show All zooms the contents to fit the XGroup’s window. Center Nodes centers the contents in the XGroup’s window. Align To Upper Left moves the contents to the top left corner of the XGroup’s window. Align To Grid aligns the contents to the grid of the XGroup’s window.
显示所有缩放内容以适应 XGroup 的窗口。Center Nodes 将 XGroup 窗口中的内容置于中心位置。Align To Upper Left 将内容移动到 XGroup 窗口的左上角。Align To Grid 将内容与 XGroup 窗口的网格对齐。
联系
移除所有
This command deletes the connections (i.e. wires) of the selected nodes and XGroups.
此命令删除所选节点和 XGroups 的连接(即连线)。
港口
删除未使用的
Proceed with caution when using this command — it deletes all unconnected ports, including any that may be in use and receiving values from the 使用这个命令时要小心ーー它会删除所有未连接的端口,包括任何可能正在使用并从Attribute Manager 属性管理器.This command deletes all ports that are not connected to the selected node(s) and/or XGroup(s).
此命令删除所有未连接到选定节点和/或 XGroup 的端口。
To delete ports individually, choose Delete Ports from the port’s context menu, or double-click each unconnected port that you want to delete.
若要单独删除端口,请从端口的上下文菜单中选择“删除端口” ,或双击要删除的每个未连接的端口。
显示姓名
Some types of node display either port names or other information depending on whether Show Names is enabled. For example, a Result node can display either the port names or the value of its Input port, but not both at the same time. 某些类型的节点根据是否启用“显示名称”显示端口名或其他信息。例如,Result 节点可以显示端口名称或其 Input 端口的值,但不能同时显示两者If this option is enabled, the names of ports are displayed in the selected nodes and XGroups.
如果启用此选项,则在选定的节点和 XGroups 中显示端口的名称。
删除
This command deletes the selected nodes and XGroups, including their wires.
此命令删除选定的节点和 XGroups,包括它们的连接。
重命名
Renaming elements helps to distinguish between individual nodes and XGroups, though keep in mind that the default name indicates the element’s type. If you have renamed a node and want to check its type, select the node and the type will be shown in the 重命名元素有助于区分单个节点和 XGroups,但请记住,默认名称表示元素的类型。如果您已经重命名了一个节点,并希望检查它的类型,请选择该节点,该类型将显示在Attribute Manager 属性管理器.To rename a node or XGroup, choose this command and enter the new name into the dialog that opens. You can also rename nodes and XGroups using the Attribute Manager.
要重命名节点或 XGroup,请选择此命令并在打开的对话框中输入新名称。您还可以使用属性管理器重命名节点和 XGroups。
优化
This command has a different effect depending on whether you select it from a node, an XGroup or the XPresso Editor.
这个命令具有不同的效果,这取决于您是从节点、 XGroup 还是 XPresso 编辑器中选择它。
If Optimize is selected from a node’s context menu, the node is scaled to the smallest size at which its name and ports are visible.
如果从节点的上下文菜单中选择了 Optimize,则节点将缩放到其名称和端口可见的最小大小。
If Optimize is selected from an XGroup’s context menu, the XGroup is scaled to the smallest size at which all its nodes and XGroups can be seen.
如果从 XGroup 的上下文菜单中选择了 Optimize,则 XGroup 将被缩放到可以看到其所有节点和 XGroups 的最小大小。
选择连接
This command selects the next connected XGroup or node.
此命令选择下一个连接的 XGroup 或节点。
失去能力
Use this option to disable or enable the selected nodes and XGroups. This can be especially useful for testing
parts of an expression without having to disconnect wires. (You can also enable and disable nodes and XGroups
from the XPresso Editor’s
使用此选项可禁用或启用选定的节点和 XGroups。这对于测试表达式的各个部分而不必断开连接特别有用。(您还可以从 xpressoeditor 的编辑菜单中启用和禁用节点和 XGroups。)禁用的元素有灰色边,在计算表达式时将被忽略。
If you disable a node or XGroup that is between two enabled nodes and/or XGroups, no values will be passed through. In effect, the enabled elements will be disconnected from each other. XPresso elements that cannot be calculated, whether due to disabled elements or incompatible data types, have a yellow title bar.
如果禁用位于两个已启用节点和/或 XGroups 之间的节点或 XGroup,则不会传递任何值。实际上,已启用的元素将彼此断开连接。无法计算的 XPresso 元素,无论是由于禁用的元素还是不兼容的数据类型,都有一个黄色的标题栏。
端口的上下文菜单
Using these commands, you can delete ports and wires, rename ports and access the Port Info window.
使用这些命令,您可以删除端口和连线,重命名端口和访问端口信息窗口。
To open a port’s context menu:
要打开端口的上下文菜单:
Right-click on the desired port.
右击所需的端口。
港口资料
This command opens a window containing information about the port, such as its name and data type.
此命令将打开一个窗口,其中包含有关端口的信息,例如端口的名称和数据类型。
移开电线
This command deletes all of the port’s wires.
此命令删除所有端口的连接线。
重命名端口
Enter a new name for the port in the dialog that opens. Meaningful names can help to make the expression easier to understand, especially if you are editing an expression you created some time ago and you have forgotten how it works.
在打开的对话框中为端口输入一个新名称。有意义的名称可以帮助使表达式更容易理解,特别是如果您正在编辑一段时间前创建的表达式,并且您已经忘记了它是如何工作的。
删除端口
The port and its wires are deleted. You can also delete a disconnected port by double-clicking it.
删除端口及其连接。还可以通过双击删除已断开连接的端口。