Difference between revisions of "Component: Motion Helper (Misc)"
From Flowcode Help
Jump to navigationJump to searchLine 74: | Line 74: | ||
Example showing how to use the motion helper component to easily assign motion to items on the panel. | Example showing how to use the motion helper component to easily assign motion to items on the panel. | ||
{{Fcfile|Motion.fcfx|Motion}} | {{Fcfile|Motion.fcfx|Motion}} | ||
+ | |||
+ | |||
Line 79: | Line 81: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===RegisterTarget=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 112: | Line 115: | ||
+ | ===SetAcceleration=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 135: | Line 139: | ||
+ | ===SetSpeed=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 158: | Line 163: | ||
+ | ===UnregisterTarget=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 176: | Line 182: | ||
+ | ===UnregisterAll=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:51, 3 February 2023
Author | Matrix Ltd |
Version | 1.1 |
Category | Misc |
Contents
Motion Helper component
Helper for building components which require simulation of constant motion. Linked objects can be issued speed and acceleration parameters, and will then be animated automatically until another command is issued. The helper can control motion for up to four objects simultaneously, all with their own discrete motion settings.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Motion_Helper.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Motion_Helper.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Example showing how to use the motion helper component to easily assign motion to items on the panel.
Motion
Macro reference
RegisterTarget
SetAcceleration
SetSpeed
UnregisterTarget
![]() |
UnregisterTarget |
Remove a target from the list of links. | |
![]() |
Target |
Handle of the object to remove | |
![]() |
Return |
UnregisterAll
![]() |
UnregisterAll |
Totally clear the list of registered objects | |
![]() |
Return |