Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Hiero: python3 compatibility #2365

Merged
merged 4 commits into from
Dec 6, 2021

Conversation

jakubjezek001
Copy link
Member

@jakubjezek001 jakubjezek001 commented Dec 2, 2021

  • also reorganization of host folder to match other hosts
  • unification of string quotations
  • fixing thirdparty plugins to be python3 compatible

testing:

  • you need to add Hiero 13 into your project apps
  • open any of your testing project in Hiero 13
  • create, publish, load clip

@jakubjezek001 jakubjezek001 self-assigned this Dec 2, 2021
@mkolar
Copy link
Member

mkolar commented Dec 2, 2021

Task linked: OP-1629 Hiero 13 compatibility

@jakubjezek001 jakubjezek001 added the type: enhancement Enhancements to existing functionality label Dec 2, 2021
openpype/hosts/hiero/api/otio/hiero_export.py Show resolved Hide resolved
return

# The data model of the QTreeView
model = spreadsheetTreeView.model()

csvSavePath = os.path.join(QDir.homePath(), 'Desktop',
seq.name() + '.csv')
csvSavePath = os.path.join(QDir.homePath(), "Desktop",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'QDir' may be undefined, or defined from star imports: PySide.QtCore, PySide.QtGui, PySide2.QtCore, PySide2.QtGui, PySide2.QtWidgets

def selectionChanged(event):
hiero.selection = event.sender.selection()

hiero.core.events.registerInterest("kSelectionChanged", selectionChanged)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected 2 blank lines after class or function definition, found 1

@@ -23,7 +23,7 @@ def __init__(self):
self.triggered.connect(self.PurgeUnused)
hiero.core.events.registerInterest("kShowContextMenu/kBin",
self.eventHandler)
self.setIcon(QIcon('icons:TagDelete.png'))
self.setIcon(QIcon("icons:TagDelete.png"))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'QIcon' may be undefined, or defined from star imports: PySide.QtCore, PySide.QtGui, PySide2.QtCore, PySide2.QtGui, PySide2.QtWidgets

selectedBinItems = [bi.activeItem() for bi in self._selection if (isinstance(bi,hiero.core.BinItem) and hasattr(bi,'activeItem'))]

selectedBinItems = [bi.activeItem() for bi in self._selection if (isinstance(bi,hiero.core.BinItem) and hasattr(bi,"activeItem"))]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (135 > 79 characters)
missing whitespace after ','
multiple spaces before operator


self.menuActions += [makeAction(
"Custom...", self.setFrameRateFromMenuSelection, icon=None)
]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continuation line under-indented for hanging indent

self.menuActions+=[makeAction('Custom...',self.setFrameRateFromMenuSelection, icon=None)]

self.menuActions += [makeAction(
"Custom...", self.setFrameRateFromMenuSelection, icon=None)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continuation line under-indented for hanging indent

self.menuActions = []

def createFrameRateMenus(self,selection):
selectedClipFPS = [str(bi.activeItem().framerate()) for bi in selection if (isinstance(bi,hiero.core.BinItem) and hasattr(bi,'activeItem'))]
selectedClipFPS = [str(bi.activeItem().framerate()) for bi in selection if (isinstance(bi,hiero.core.BinItem) and hasattr(bi,"activeItem"))]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (145 > 79 characters)
missing whitespace after ','
multiple spaces before operator

@@ -88,13 +88,13 @@ def __init__(self):


# ant: Could use hiero.core.defaultFrameRates() here but messes up with string matching because we seem to mix decimal points
self.frameRates = ['8','12','12.50','15','23.98','24','25','29.97','30','48','50','59.94','60']
self.frameRates = ["8","12","12.50","15","23.98","24","25","29.97","30","48","50","59.94","60"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation is not a multiple of four
line too long (101 > 79 characters)
missing whitespace after ','

Copy link
Member

@64qam 64qam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@jakubjezek001 jakubjezek001 merged commit 5338586 into develop Dec 6, 2021
@jakubjezek001 jakubjezek001 deleted the feature/OP-1629_Hiero-13-compatibility branch December 6, 2021 12:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants