Jump to content

API Panel.PCloud.SetPos: Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetPos'''
| width="90%" class="mtx-class-macrohead" | '''SetPos'''
|-
|-
| colspan="2" | Sets the position for the point cloud to be located at 
| colspan="2" | Sets the position for the point cloud to be located at 

Latest revision as of 14:11, 13 July 2026

SetPos
Sets the position for the point cloud to be located at 
- HANDLE PCloud
The handle to the cloud to adjust the position of 
- HANDLE Pos
The position to display the cloud at 
- BOOL Track
Automatically update the cloud to match changes in the position 
- NONE Return


Detailed description

This sets the position the point cloud will fill in. That is for any axis the range -1 to 1 in the point cloud will be mapped to the opposite walls of the positions bounding box.


If Track is true, the point clouds position will automatically be updated when the position changes, otherwise the point cloud remains at the specified position even if the owning object moves.


Note that for component positions the point cloud will redraw when the components position is altered, as moving a component invokes a redraw of the screen. However, adjusting dynamic position objects does not redraw the screen, and Update must be called to force a redraw of the point cloud.


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Panel.PCloud.SetPos(pcloud, pos, false)