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

ValueError when creating Encryptomatte node #109

Closed
fynnay opened this issue May 9, 2019 · 2 comments
Closed

ValueError when creating Encryptomatte node #109

fynnay opened this issue May 9, 2019 · 2 comments

Comments

@fynnay
Copy link

fynnay commented May 9, 2019

Summary

In Nuke11.2v4, creating new one node, while another node is selected, after previously having deleted an Encryptomatte a ValueError appears in the ScriptEditor.
I'm not sure exactly what other consequences this has, but it seems to prevent other Encryptomatte nodes from updating.

Steps to reproduce

  • Create a Constant node and select it
  • Create an Encryptomatte node and delete it again
  • Select the Constant node again
  • Create another Encryptomatte node
  • Error apprears in Script Editor (see below)

Relevant logs and/or screenshots

Traceback (most recent call last):
  File "/opt/applications/Nuke11.2v4/plugins/nuke/callbacks.py", line 127, in knobChanged
    _doCallbacks(knobChangeds)
  File "/opt/applications/Nuke11.2v4/plugins/nuke/callbacks.py", line 46, in _doCallbacks
    f[0](*f[1],**f[2])
  File "/data/users/fynn/.nuke/gizmos/thirdParty/Cryptomatte/cryptomatte_utilities.py", line 42, in <lambda>
    nuke.thisNode(), nuke.thisKnob()), nodeClass='Encryptomatte')
  File "/data/users/fynn/.nuke/gizmos/thirdParty/Cryptomatte/cryptomatte_utilities.py", line 446, in encryptomatte_knob_changed_event
    if unsafe_to_do_inputChange(node):
  File "/data/users/fynn/.nuke/gizmos/thirdParty/Cryptomatte/cryptomatte_utilities.py", line 535, in unsafe_to_do_inputChange
    return nuke.NUKE_VERSION_MAJOR > 7 and node.screenHeight() == 0
ValueError: A PythonObject is not attached to a node
@jonahfriedman
Copy link
Contributor

I just reproduced this in 12.0v3, thank you for the report.

@jonahfriedman
Copy link
Contributor

Fixed in the next version (1.2.5). It actually occurred on more than just these nodes, though it seems that it was harmless.

jonahfriedman pushed a commit to jonahfriedman/Cryptomatte that referenced this issue Dec 23, 2019
…). Also happened with Cryptomatte. Now detecting limbo state. Could not measure any time spent by this check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants