Interaction Tag 交互标签Basic 基础Tag 标签Scripting 脚本Output 输出Poly Info 保利信息科技有限公司Proxy 代理人

Output

输出

These settings are primarily designed to be referenced by and used to execute actions by scripts/XPresso (e.g., "If a tagged object is dragged more than 100 pixels to the right then object X will be set to location Y").

这些设置主要是为脚本/xpresso 引用和执行操作而设计的(例如,“如果标记的对象向右拖动超过100像素,那么对象 x 将被设置为位置 y”)。

The first three options can be enabled optionally. Various objects can, for example, be selected or highlighted with the help of XPresso.

前三个选项可以选择性地启用。例如,可以在 XPresso 的帮助下选择或突出显示各种对象。

Use Right Mouse Button

使用鼠标右键

If this option is enabled, the RMB can be used for tweaking. By default, this function will move the object in the camera’s direction of view.

如果启用这个选项,人民币可以用来调整。默认情况下,这个函数会将物体移动到摄像机的视角方向。

The tag will also reference all of the settings described below as well as those from the next tab.

标签还将引用下面描述的所有设置以及下一个标签中的设置。

Object Is Selected

对象被选中

This option, which can also be defined via XPresso/scripts, outputs the tagged object’s selection state.

这个选项也可以通过 XPresso/scripts 定义,它输出标记的对象的选择状态。

Object Is Highlighted

对象突出显示

This option, which can also be defined via XPresso, scripts, outputs the tagged object’s highlighted state (the white outline an object has when the cursor is hovered over it).

这个选项也可以通过 XPresso 脚本定义,它输出标记的对象的突出显示状态(当光标悬停在对象上时,对象具有的白色轮廓)。

Object Is Being Tweaked

对象正在被调整

This option outputs the tweaking state. This is only true in a Boolean sense when the tagged object is clicked upon (and not if it’s ,dragged along’ by a tweaked Parent object as part of a hierarchy).

此选项输出调整状态。只有在单击标记的对象时,才会出现这种情况(如果被调整的 Parent 对象拖动作为层次结构的一部分,则不会出现这种情况)。

Mouse Button

鼠标按钮

Outputs which mouse button will be used for tweaking the tagged object. The Use Right Mouse Button option described above must be enabled to output the Right option.

输出哪个鼠标按钮将用于调整标记的对象。必须启用上面描述的“使用鼠标右键”选项才能输出“右键”选项。

X Mouse[-2147483648..2147483647]
Y Mouse[-2147483648..2147483647]

X 鼠标[-2147483648. . 2147483647] y 鼠标[-2147483648. . 2147483647]

These values output the cursor location in pixels in the Viewport. This can, for example, be used to restrict actions to objects located at the top left of the Viewport, etc.

这些值以 Viewport 中的像素为单位输出光标位置。例如,这可以用来限制对位于 Viewport 左上角的对象的操作等等。

Pen Pressure[0..+∞%]

笔压[0. . + ∞% ]

If a graphics tablet is used, this setting outputs the pen pressure from between 0% (light touch) and 100% (firm). This can, for example, be used to define that a selection can only be made if pressed upon firmly.

如果使用图形输入板,这个设置输出0% (轻触)和100% (坚定)之间的笔压力。例如,这可以用来定义选择只有在坚定地按下时才能进行。

Pen Tilt[0..+∞%]

钢笔倾斜[0. . + ∞% ]

If a graphics tablet is used, this setting outputs the pen’s angle from between 0% (perpendicular to tablet) and 100% (parallel to tablet).

如果使用图形输入板,此设置将输出笔的角度从0% (垂直于输入板)到100% (平行于输入板)之间。

Pen Angle[-∞..+∞°]

笔角[-∞ . . + ∞ ° ]

If a graphics tablet is used, this setting outputs the pen angle. For example, on a clock face, would be 12-o’clock and 90° would be 3-o’clock.

如果使用图形输入板,此设置将输出笔角度。例如,在一个钟面上,0 ° 是12-o’ clock,90 ° 是3-o’ clock。

Mouse Wheel[-∞..+∞]

鼠标滚轮[-∞ . . + ∞]

The respective values will be output if the mouse wheel is rotated during tweaking. If the wheel is rotated forward, the value will increase, if the wheel is rotated backward, the value will be reduced. How precisely the values will change depends on the type of mouse used.

如果在调整期间鼠标滚轮旋转,将输出相应的值。如果车轮向前旋转,数值会增加,如果车轮向后旋转,数值会减少。这些值变化的精确程度取决于所使用鼠标的类型。

X Pixels[-2147483648..2147483647]
Y Pixels[-2147483648..2147483647]

X 像素[-2147483648. . 2147483647] y 像素[-2147483648. . 2147483647]

These settings output the distance between the current cursor loction and the mouse click location in X (horizontal) and Y (vertical) pixels (see also Example 2).

这些设置输出当前光标定位和鼠标单击位置 x (水平)和 y (垂直)像素之间的距离(参见示例2)。

Mouse Travel[-∞..+∞]

鼠标移动[-∞ . . + ∞]

This setting outputs the distance in pixels between the current cursor location and the mouse click location.

此设置输出当前光标位置与鼠标单击位置之间的距离(以像素为单位)。

Object Delta[XYZ ]

对象 Delta [ XYZ ]

This setting outputs the actual changes made to the object from the time the mouse button was pressed. This value is not output in pixels like other values but as a vector in 3D space. Let’s say you moved an object with the Tweakable option disabled. If you now click + drag the tagged object, the Object Delta value would be the distance that the object would normally have been moved. If these values are assigned to another object via XPresso/script, this object would basically be controlled remotely (i.e., exactly what you would do using the proxy function that is described later in this manual).

此设置输出按下鼠标按钮时对对象所做的实际更改。这个值不像其他值那样以像素为单位输出,而是作为三维空间中的一个矢量输出。假设您移动了一个禁用 Tweakable 选项的对象。如果现在单击 + 拖动标记的对象,Object Delta 值将是通常移动对象的距离。如果这些值是通过 XPresso/script 分配给另一个对象的,那么这个对象基本上是远程控制的(也就是说,使用本手册后面描述的代理函数完全可以做到这一点)。