• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.

Question How should I set button A to simulate a click on button B?

fyxtc

Member
Joined
May 25, 2022
Messages
43
Reactions
3
In order for button A to trigger the click actions of button B
 
Would be curious to know that too.
For now perhaps think of an alternative to reach the intended result
 
Upvote 0
Well, UIButtons cannot be triggered in VAM by anything else than a click on them.
But there are ways to bypass that.

Without any additional plugin, you can add other atoms that use triggers and which can be externally triggered, such as UIToggle or AnimationPatterns.
For instance, put all the desired actions in the Trigger tab of your UIToggle. Then add a trigger in UIButtons A & B that'll trigger your UIToggle. Just be wary of the fact that some actions will be reversed when untoggled; that can be avoided by triggering it twice.
With AnimationPatterns, do a very simple non-looping 2 steps animations with triggers in it. Use the "ResetAndPlay" trigger to start it from a UIButton.

Or you can use a plugin. "Relay" from MacGruber's LogicBricks does just that.
It's the same idea: you put your trigger actions into any atom thanks to the plugin and then add only 1 trigger in your UIButtons that'll trigger it.
 
Upvote 0
Well, UIButtons cannot be triggered in VAM by anything else than a click on them.
But there are ways to bypass that.

Without any additional plugin, you can add other atoms that use triggers and which can be externally triggered, such as UIToggle or AnimationPatterns.
For instance, put all the desired actions in the Trigger tab of your UIToggle. Then add a trigger in UIButtons A & B that'll trigger your UIToggle. Just be wary of the fact that some actions will be reversed when untoggled; that can be avoided by triggering it twice.
With AnimationPatterns, do a very simple non-looping 2 steps animations with triggers in it. Use the "ResetAndPlay" trigger to start it from a UIButton.

Or you can use a plugin. "Relay" from MacGruber's LogicBricks does just that.
It's the same idea: you put your trigger actions into any atom thanks to the plugin and then add only 1 trigger in your UIButtons that'll trigger it.

Thank you, it's helpful
 
Upvote 0
Back
Top Bottom