How to get the type of object that has an interaction?

Are you still experiencing an issue with listing interactions? I provided more information on working with interactions.allInteractions here:

For tracing triggeredInteractions and incomingInteractions, this code works for me in XD 34 after selecting a shape or artboard that has interactions:

    let selectedNode = selection.items[0];
    let interactionsTriggered = selectedNode.triggeredInteractions;
    if (interactionsTriggered) {
        console.log("interactionsTriggered on " + selectedNode.name.normalize() + ": ", interactionsTriggered);
    }
    let interactionsIncoming = selectedNode.incomingInteractions;
    if (interactionsIncoming) {
        console.log("interactionsIncoming on " + selectedNode.name.normalize() + ": ", interactionsIncoming);
    }
2 Likes