SoTranslate2Dragger¶
- InventorModule¶
genre
author
package
definition
Purpose¶
SoTranslate2Dragger is a simple dragger that translates in two dimensions when dragged with the mouse. It moves within the x-y plane of its local space, determined by its position in the scene graph. Transformation nodes placed before it will affect both the dragger and the direction of motion.
Pressing the Shift key allows you to constrain motion to either the x-axis or the y-axis. The direction is determined by your initial mouse gesture after pressing the key. Releasing the key removes the constraint.
This node has a translation field that always reflects its position in local space. If you set this field, the dragger will move accordingly. You can also connect fields of other nodes or engines to this one to make them follow the dragger’s motion.
Windows¶
Default Panel¶
Output Fields¶
self¶
- name: self, type: SoNode¶
Parameter Fields¶
Visible Fields¶
Is Active¶
- name: isActive, type: Bool, persistent: no¶
Shows whether the dragger is active.
Translation¶
- name: translation, type: Vector3, default: 0 0 0¶
Sets and shows the position of the dragger.