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

GraphEditor not found if docked #17

Open
RedForty opened this issue Sep 24, 2020 · 2 comments
Open

GraphEditor not found if docked #17

RedForty opened this issue Sep 24, 2020 · 2 comments

Comments

@RedForty
Copy link
Contributor

If the modern graph editor is docked, this error pops up (2018.5):
Maya Exception: window: Object 'graphEditor1Window' not found. - Branchless
Traceback (most recent call last):

File "C:\Users\dklug\Documents\maya\scripts\guppy_animation_tools\scripts\slideAnimationKeysUI.py", line 757, in _onSliderPress
_controller.beginSlide(value)

File "C:\Users\dklug\Documents\maya\scripts\guppy_animation_tools\scripts\slideAnimationKeys.py", line 763, in beginSlide
self.detectKeys()

File "C:\Users\dklug\Documents\maya\scripts\guppy_animation_tools\scripts\slideAnimationKeys.py", line 694, in detectKeys
segmentCollection = SegmentCollection.detect()

File "C:\Users\dklug\Documents\maya\scripts\guppy_animation_tools\scripts\slideAnimationKeys.py", line 648, in detect
curves = Curve.detectCurves(forceSelectedKeys=forceSelectedKeys)

File "C:\Users\dklug\Documents\maya\scripts\guppy_animation_tools\scripts\slideAnimationKeys.py", line 290, in detectCurves
graphEditor = selectedAttributes.GraphEditorInfo.detect(restrictToVisible=True)

File "C:\Users\dklug\Documents\maya\scripts\guppy_animation_tools\scripts\selectedAttributes.py", line 169, in detect
graphPanels = set(filter(cls._isPanelVisible, graphPanels))

File "C:\Users\dklug\Documents\maya\scripts\guppy_animation_tools\scripts\selectedAttributes.py", line 142, in _isPanelVisible
return (cmd.window(window, query=True, visible=True) and

RuntimeError: window: Object 'graphEditor1Window' not found.
image

@assumptionsoup
Copy link
Owner

Just wanted to let you know I'm finally looking into this. It's easy enough to make the error go away, but it seems like it's harder to solve the problem and keep all of the original functionality. At least at first glance, Maya doesn't seem to be correctly reporting if the graphing tab is visible or not, unlike the normal window.

@roob0t
Copy link

roob0t commented Apr 25, 2022

Firstly thanks for these interesting tools!
keen to try them out but was this ever fixed?.. Im getting a similar error (maya2020.4):

guppy_animation_tools\scripts\selectedAttributes.py line 142: window: Object 'graphEditor1Window' not found. #

Trying to use the Slide Animation Keys as Hotkeys but it won't work due my GE being Docked - Also the UI window pops behind Maya's Main window when using , but would be happy just getting the Hkey commands to work :) - tks!

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

3 participants