Skip to content

Node name not included in script #68

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

Closed
gnistregn opened this issue Oct 13, 2023 · 0 comments · Fixed by #85
Closed

Node name not included in script #68

gnistregn opened this issue Oct 13, 2023 · 0 comments · Fixed by #85
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@gnistregn
Copy link

The Name attribute of nodes is not replicated when exported as a script. It is used to name the variable in the resulting script, but the attribute isn't initialized with the name.
This is what I get from a Value node currently:

#node Foo
foo = paint_visualizer_002.nodes.new("ShaderNodeValue")
foo.label = "FooLabel"

But would be great if it also populated name, like this:

#node Foo
foo = paint_visualizer_002.nodes.new("ShaderNodeValue")
foo.name = "Foo"
foo.label = "FooLabel"
@BrendanParmer BrendanParmer self-assigned this Dec 2, 2023
@BrendanParmer BrendanParmer added the enhancement New feature or request label Dec 2, 2023
@BrendanParmer BrendanParmer added this to the v3.0 milestone Dec 2, 2023
@BrendanParmer BrendanParmer mentioned this issue Jan 28, 2024
Merged
@BrendanParmer BrendanParmer linked a pull request Jan 28, 2024 that will close this issue
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants