Difference between revisions of "Component: Motion Helper (Misc)"
From Flowcode Help
Jump to navigationJump to searchLine 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/Motion_Helper.fcfx FC_Comp_Source_temp/Motion_Helper.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/Motion_Helper.fcfx FC_Comp_Source_temp/Motion_Helper.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 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 163: | Line 165: | ||
− | === | + | ===UnregisterAll=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UnregisterAll''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Totally clear the list of registered objects |
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | |||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
Line 182: | Line 179: | ||
− | === | + | ===UnregisterTarget=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UnregisterTarget''' |
+ | |- | ||
+ | | colspan="2" | Remove a target from the list of links. | ||
+ | |- | ||
|- | |- | ||
− | | | + | | width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE |
+ | | width="90%" | Target | ||
|- | |- | ||
+ | | colspan="2" | Handle of the object to remove | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID |
Revision as of 12:02, 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_temp/Motion_Helper.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/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
UnregisterAll
![]() |
UnregisterAll |
Totally clear the list of registered objects | |
![]() |
Return |
UnregisterTarget
![]() |
UnregisterTarget |
Remove a target from the list of links. | |
![]() |
Target |
Handle of the object to remove | |
![]() |
Return |