animation_nodes icon indicating copy to clipboard operation
animation_nodes copied to clipboard

Proposal: Get current instance of Invoke script node

Open marselarts opened this issue 1 year ago • 6 comments

Is there a way to get instance of Invoke node from it's script? Something like self.inputs?

marselarts avatar Jul 02 '24 16:07 marselarts

Why do you need that? This might be an XY problem?

OmarEmaraDev avatar Jul 04 '24 17:07 OmarEmaraDev

For example I want to make multiple instances of Invoke, and I want only execute one of them at a time. Like for switching different presets. I found workarond, I added 'NodeName' property in script node, which I can use in script text or in operator. But it's not much elegant. By the way, I also simplified UI of a node for myself: https://github.com/JacquesLucke/animation_nodes/assets/133324909/2f6503fe-e3d8-4def-a474-51bb2de619de

marselarts avatar Jul 05 '24 06:07 marselarts

I am not sure if we will add functionality like this to be honest, and I don't think there is a much better way than you already do.

OmarEmaraDev avatar Jul 07 '24 08:07 OmarEmaraDev

I get it. Anyways thanks for great tool

marselarts avatar Jul 07 '24 09:07 marselarts

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 08:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 19 '25 05:07 stale[bot]