ProtoFlux:Dynamic Impulse Trigger With Data: Difference between revisions

From Resonite Wiki
fix types, examples go on dymamic impulses page
standardize
 
Line 17: Line 17:
|}}
|}}


Since Dynamic Impulses can be a complex topic, the usage of this node is part of the [[Dynamic Impulses]] page.
The '''Dynamic Impulse Trigger With Data''' node sends a [[sync context]] [[dynamic impulse]] to all [[ProtoFlux:Dynamic Impulse Receiver With Data|Dynamic Impulse Receiver With Data]] nodes with a matching type and tag under the provided <code>TargetHierarchy</code>.


== Inputs ==
== Inputs ==


=== * ([[Impulses|Call]]) ===  
=== * ([[Impulses|Call]]) ===


Trigger the input slot TargetHierarchy ([[Slot|Slot]]) with the given Tag ([[Type:String|String]]) and Value (Generic).
Trigger a sync context dynamic impulse with the tag <code>Tag</code> and data <code>Value</code> under <code>TargetHierarchy</code>.


=== Tag ([[Type:String|String]]) ===
=== Tag ([[Type:String|String]]) ===


The tag of the Dynamic Impulse that should be sent after calling * ([[Impulses|Call]]).
The tag of the dynamic impulse.


=== TargetHierarchy ([[Slot|Slot]]) ===
=== TargetHierarchy ([[Slot|Slot]]) ===


The [[Slot|Slot]] under which to trigger eligible Dynamic Impulse Recievers.
The slot under which to search for dynamic impulse receivers.


=== ExcludeDisabled ([[Type:Bool|bool]]) ===
=== ExcludeDisabled ([[Type:Bool|bool]]) ===


Decides if this node should or should not activate eligible dynamic receivers that are under disabled hierarchy.
If <code>True</code>, the dynamic impulse will not search for receivers under disabled slots.


=== Value (Generic) ===
=== Value (Generic) ===


Value to send with this impulse.
The data to send with the dynamic impulse. Receivers must have a matching type as this value.


== Outputs ==
== Outputs ==
Line 45: Line 45:
=== Next ([[Impulses|Continuation]]) ===
=== Next ([[Impulses|Continuation]]) ===


Code to run after all the code ran by the eligible dynamic impulse receivers is done running, excluding a-syncs created by the receivers.
Triggered once the [[context]] of every receiver is completed.


=== TriggeredCount ([[Types:Int|Int]])===  
=== TriggeredCount ([[Types:Int|Int]])===


Number of Dynamic Impulse Receivers that were eligible and got triggered.
Number of receivers that were triggered. Only exists for the current ProtoFlux context.
 
== See Also ==
 
* [[ProtoFlux:Dynamic Impulse Trigger]] if data does not need to be sent.
* [[ProtoFlux:Async Dynamic Impulse Trigger With Data]] for the async context analogue.


[[Category:ProtoFlux:Flow]]
[[Category:ProtoFlux:Flow]]

Latest revision as of 21:48, 13 December 2024

Dynamic Impulse Trigger With Data
*
Next
Tag
TriggeredCount
TargetHierarchy
ExcludeDisabled
Value
Flow

The Dynamic Impulse Trigger With Data node sends a sync context dynamic impulse to all Dynamic Impulse Receiver With Data nodes with a matching type and tag under the provided TargetHierarchy.

Inputs

* (Call)

Trigger a sync context dynamic impulse with the tag Tag and data Value under TargetHierarchy.

Tag (String)

The tag of the dynamic impulse.

TargetHierarchy (Slot)

The slot under which to search for dynamic impulse receivers.

ExcludeDisabled (bool)

If True, the dynamic impulse will not search for receivers under disabled slots.

Value (Generic)

The data to send with the dynamic impulse. Receivers must have a matching type as this value.

Outputs

Next (Continuation)

Triggered once the context of every receiver is completed.

TriggeredCount (Int)

Number of receivers that were triggered. Only exists for the current ProtoFlux context.

See Also