Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Get current instance of Invoke script node #1963

Open
marselarts opened this issue Jul 2, 2024 · 4 comments
Open

Proposal: Get current instance of Invoke script node #1963

marselarts opened this issue Jul 2, 2024 · 4 comments

Comments

@marselarts
Copy link

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

@OmarEmaraDev
Copy link
Collaborator

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

@marselarts
Copy link
Author

marselarts commented Jul 5, 2024

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

@OmarEmaraDev
Copy link
Collaborator

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.

@marselarts
Copy link
Author

I get it. Anyways thanks for great tool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants