ProtoFlux:Duplicate Slot: Difference between revisions

From Resonite Wiki
fix types, add gallery
Updated the duplicate node.
Line 5: Line 5:
[
[
{"Name": "*", "Type": "Call"},
{"Name": "*", "Type": "Call"},
{"Name": "Instance", "Type": "Slot"}
{"Name": "Template", "Type": "Slot"},
{"Name": "OverrideParent", "Type": "Slot"}
]
]
|Outputs=
|Outputs=
Line 14: Line 15:
|}}
|}}


Duplicates a [[Slot|slot]] and exposes the duplicated slot with the output called Duplicate which can be used for any nodes that accept the [[Slot|slot]] type.
The '''Duplicate Slot''' node makes a copy of a [[Slot|slot]] and exposes the duplicated slot with the output called <code>Duplicate</code> which can be used for any nodes that accept the [[Slot|slot]] type.


For example, you can duplicate a slot from an instance and use [[ProtoFlux:Set Parent|Set Parent]] with the output of Duplicate to move the newly created slot's parent without changing anything with the original instance slot.
This node can take an overriding parent as an input for the duplicated slot. This acts similarly to the [[ProtoFlux:Set Parent|Set Parent]] node without needing the extra node.


== Inputs ==
== Inputs ==
Line 24: Line 25:
Call this to write the value.
Call this to write the value.


=== Instance ([[Slot|Slot]]) ===
=== Template ([[Slot|Slot]]) ===


The slot to make a duplicate of.
The slot to make a duplicate of.
=== OverrideParent ([[Slot|Slot]]) ===
The slot to place the duplicated slot under.


== Outputs ==
== Outputs ==

Revision as of 23:50, 17 March 2025

Duplicate Slot
*
Next
Template
Duplicate
OverrideParent
Slots

The Duplicate Slot node makes a copy of a slot and exposes the duplicated slot with the output called Duplicate which can be used for any nodes that accept the slot type.

This node can take an overriding parent as an input for the duplicated slot. This acts similarly to the Set Parent node without needing the extra node.

Inputs

* (Call)

Call this to write the value.

Template (Slot)

The slot to make a duplicate of.

OverrideParent (Slot)

The slot to place the duplicated slot under.

Outputs

Next (Continuation)

Will fire after Instance (Slot) has been duplicated due to * (Call) being impulsed.

Duplicate (Slot)

The duplicate of Instance (Slot). Will only exist during the Next (Continuation) Impulse context.

Examples