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

backdropper: fixed type error #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomjiji
Copy link

@thomjiji thomjiji commented Nov 2, 2024

Set NUKE_PATH evironment variable to point to nuke-config directory (set -x NUKE_PATH nuke-config $NUKE_PATH — in fish shell), then start Nuke from Terminal, press shift+b to try to open up backdropper, it will report error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/thom/repos/nuke-config/scripts/nuketools/backdropper.py", line 482, in invoke
    panel = BackdropPanel(QtWidgets.QApplication.activeWindow())
  File "/Users/thom/repos/nuke-config/scripts/nuketools/backdropper.py", line 104, in __init__
    self.setup_nodes()
  File "/Users/thom/repos/nuke-config/scripts/nuketools/backdropper.py", line 270, in setup_nodes
    self.set_sliders()
  File "/Users/thom/repos/nuke-config/scripts/nuketools/backdropper.py", line 330, in set_sliders
    self.appearance_checkbox.setChecked(self.bd['appearance'].getValue())
TypeError: 'float' object cannot be interpreted as an integer

The backdropper GUI didn't open up.

It seems like a type error. Fixing it with the commit works on my machine (MBP M1).

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

Successfully merging this pull request may close these issues.

1 participant