Duplicate Slot (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
English • ‎日本語
Duplicate Slot
'Duplicate Slot' LogiX node
Inputs
  Impulse DoDuplicate
  Slot Template
Outputs
  Impulse OnDuplicated
  Slot Duplicate

The Duplicate Slot node creates a copy of the Template input slot when an impulse is received at DoDuplicate.

As usual, precautions related to the duplication and reparenting of dynamic variables apply, as described on the Dynamic Variables page.

Usage

The OnDuplicated output fires an impulse when the Template slot has been successfully duplicated. No impulse is fired if there is no valid Template.


The Duplicate output provides the newly created slot. This data is only available for the duration of the impulse chain started from OnDuplicated.


The Duplicate slot shares the same parent slot as the Template.

Examples

This node is commonly used when one wants to spawn an item when an event occurs. Place a template object under an inactive parent slot and duplicate the template. Often one needs to reparent the duplicate immediately using a Set Parent (LogiX node). If the Template slot is itself set as active, but it is inactive due to a parent slot being inactive, the duplicate will be active after reparenting under another active slot.

Node Menu

Slots
Back Children Count Destroy Slot Destroy Slot Children Duplicate Slot Find Child By Name Find Child By Tag
Find Parent By Name Find Parent By Tag Get Active User Get Active User Root Get Active User Self Get Child Get Object Root
Get Parent Slot Get Slot Get Slot Active Get Slot Active Self Get Slot Name Get Slot Order Offset Get Slot Persistent
Get Slot Persistent Self Get Tag Has Tag Index Of Child Is Child Of Root Slot Set Child Index
Set Parent Set Slot Active Self Set Slot Name Set Slot Order Offset Set Slot Persistent Self Set Tag Slot Children Events