The "Object 2D Position" PlugIT allows to position a 3D object from 2D coordinates on the screen.
Parameters |
|
1 |
Name of the object to position. |
2 |
Horizontal position in pixels, or in percentage if "%" is checked. If the position is in percentage you can apply an offset in pixels. |
3 |
Vertical position in pixels, or in percentage if "%" is checked. If the position is in percentage you can apply an offset in pixels. |
4 |
Horizontal alignement. Defines if the position is relative to the left edge, center or right edge of the screen. |
5 |
Vertical alignement. Defines if the position is relative to the top edge, center or bottom edge of the screen. |
6 |
Distance of the object from the camera. |
7 |
Method for calculating the distance of the object from the camera - On a plane [distance] away from the camera : The object is positioned on a plane located [distance] in front of the camera. Objects positioned in this way appear aligned on the same plane. If the following option is checked, the objects will face the direction of the camera. Example: - Real distance from the camera : The object is positioned [distance] from the camera. Objects positioned in this way seem to be placed on a sphere around the camera. If the following option is checked, the objects will be oriented towards the camera. Example: |
8 |
If checked, the object will be reoriented to face the camera. If the first option is chosen for the previous parameter, the object will face the direction of the camera, not the camera directly. If the second is selected, the object will be oriented towards the camera (see example images above). |
9 |
If checked, the object will be repositioned when the application is launched. |
Action |
|
Set object |
Change the subject to affect. |
Set position |
Changes the position of the object. If the link parameter is empty, the object is positioned at the coordinates defined in the plugIT. The link parameter is in the format "PosX(%) PosY(%) (Xoffset) (Yoffset) (Distance)". Examples : "10 10" "20% 50%" "150 30% 0 -20 5.0" |
Get position |
Retrieves the position of the object on the screen in pixels and its distance from the camera ("Position" event). |
Reset object |
Reset the object to the position and orientation it had when launching the application. |
Événement |
|
Position |
Position of the object on the screen in pixels and its distance from the camera. Format of the link parameter: "PosX PosY Distance". |
Translation |
Translation performed on the 2D screen since the last rendering. Format of the link parameter: "PosX PosY Distance". |