Component:OSC Value: Difference between revisions

From Resonite Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
{{Table ComponentFields
{{Table ComponentFields
|Handler|OSC_Handler|The [[Component:OSC_Receiver]] or [[Component:OSC_Sender]] to be used with this component.
|Handler|OSC_Handler|The [[Component:OSC_Receiver]] or [[Component:OSC_Sender]] to be used with this component.
|Path|String|The OSC Path for this value
|Path|String|The OSC Path for this value.
|ArgumentIndex|Int|For Multi-Dimensional OSC Values, this specifies which value to retrieve
|ArgumentIndex|Int|For [[OSC#Multi-Dimensional Values|Multi-Dimensional OSC Values]], this specifies which value to retrieve or send.
|Value|'''T'''|TypeAdv3=true|The recieved OSC Value or the default value of the Type if there is no OSC data.
|Value|'''T'''|TypeAdv3=true|The recieved OSC Value or the default value of the Type if there is no OSC data.
}}
}}
Line 17: Line 17:
=== Receiving ===
=== Receiving ===
When <code>Handler</code>, is set to a valid and <code>IsListening</code>, [[Component:OSC_Receiver|OSC Reciever]], if [[OSC]] Data is found at the specified <code>Path</code>. The value from OSC will be shown in the <code>Value</code> field.
When <code>Handler</code>, is set to a valid and <code>IsListening</code>, [[Component:OSC_Receiver|OSC Reciever]], if [[OSC]] Data is found at the specified <code>Path</code>. The value from OSC will be shown in the <code>Value</code> field.
=== Sending ===
When <code>Handler</code>, is set to a valid, [[Component:OSC_Sender|OSC Sender]].
If the <code>SendMode</code> of the [[Component:OSC_Receiver|OSC_Receiver]], is set to <code>SendAsBundles</code>, then it will bundle up all other OSC Value component's values and send them all as a bundle.
If the <code>SendMode</code> of the [[Component:OSC_Receiver|OSC_Receiver]], is set to <code>SendIndividually</code>, then Resonite will send <code>Value</code>, as an OSC message on the OSC Path in <code>Path</code>.
Resonite will send data each time it changes or again every <code>AutoResendInterval</code> on the [[Component:OSC_Sender|OSC_Sender]].


== Examples ==
== Examples ==

Latest revision as of 20:02, 30 April 2024

Component image 
OSC Value`1 component as seen in the Scene Inspector


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
Handler OSC_Handler The Component:OSC_Receiver or Component:OSC_Sender to be used with this component.
Path String The OSC Path for this value.
ArgumentIndex Int For Multi-Dimensional OSC Values, this specifies which value to retrieve or send.
Value T The recieved OSC Value or the default value of the Type if there is no OSC data.

Behavior

Receiving

When Handler, is set to a valid and IsListening, OSC Reciever, if OSC Data is found at the specified Path. The value from OSC will be shown in the Value field.

Sending

When Handler, is set to a valid, OSC Sender.

If the SendMode of the OSC_Receiver, is set to SendAsBundles, then it will bundle up all other OSC Value component's values and send them all as a bundle.

If the SendMode of the OSC_Receiver, is set to SendIndividually, then Resonite will send Value, as an OSC message on the OSC Path in Path.

Resonite will send data each time it changes or again every AutoResendInterval on the OSC_Sender.

Examples

See Also