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

Adding a knob that can't be added (i.e it's already on another node) doesn't fail gracefully #3

Open
tanant opened this issue Jan 14, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@tanant
Copy link
Owner

tanant commented Jan 14, 2020

g = nuke.createNode('Grade')

k = nuke.String_Knob('one')
l = nuke.String_Knob('two')
m = nuke.String_Knob('three')

g.addKnob(k)
g.addKnob(l)
g.addKnob(m)

knobwrangler.insert(m, g, 'one')

You get a RuntimeError, and depending on the state of your insert point, knob names/labels are changed or knobs are lost and not recovered. Shouldn't fail this badly on an invalid change.

@tanant tanant added the bug Something isn't working label Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant