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

Conversation

@jakubjezek001
Copy link
Member

Brief description

Integrating Colorbleed's work and adding Set Framerange to menu items.

Description

Original PR description here BigRoy#2

  • added Set Framerange to menu items to set framerange to comp from asset document data.

This resolves an issue where otherwise `lib.imprint` will fail on `self.data` for this Creator plug-in
- Also refactor import maya.cmds as `mc` to `cmds` to match with other code in the OpenPype code base
- This fixes an issue with Maya 2022.0 where the maya web button was not yet renamed
- Tested in Maya 2019.3.1, Maya 2020.4 and Maya 2022.1
- This fixes an issue with Maya 2022.0 where the maya web button was not yet renamed
- Tested in Maya 2019.3.1, Maya 2020.4 and Maya 2022.1
@jakubjezek001 jakubjezek001 self-assigned this Feb 17, 2022
@jakubjezek001 jakubjezek001 added host: Fusion type: enhancement Enhancements to existing functionality labels Feb 17, 2022
)
print(LOAD_PATH)

pyblish.api.register_callback("instanceToggled", on_pyblish_instance_toggled)
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 (81 > 79 characters)

try:
print("Qt library found, nothing to do.")
from Qt import QtWidgets
except ImportError as exc:
Copy link

Choose a reason for hiding this comment

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

local variable 'exc' is assigned to but never used


try:
print("Qt library found, nothing to do.")
from Qt import QtWidgets
Copy link

Choose a reason for hiding this comment

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

'Qt.QtWidgets' imported but unused

" installed Python 3.6"
"Python 3.6 is not installed at the provided path: \n"
"Either make sure the 'environments/fusion.json' has "
"'PYTHON36' set correctly or make sure Python 3.6 is installed "
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 (80 > 79 characters)

import os

from openpype.modules import OpenPypeModule
from openpype_interfaces import (
Copy link

Choose a reason for hiding this comment

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

'openpype_interfaces.ITrayModule' imported but unused

# Get template key
#template_key = get_workfile_template_key_from_context(
# asset_name, task_name, host_name, project_name, dbcon
#)
Copy link

Choose a reason for hiding this comment

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

block comment should start with '# '


# todo: implement custom template keys instead of 'work'
# Get template key
#template_key = get_workfile_template_key_from_context(
Copy link

Choose a reason for hiding this comment

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

block comment should start with '# '

import getpass

from avalon import api, lib, pipeline
from avalon.vendor import six
Copy link

Choose a reason for hiding this comment

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

'avalon.vendor.six' imported but unused

import string
import getpass

from avalon import api, lib, pipeline
Copy link

Choose a reason for hiding this comment

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

'avalon.lib' imported but unused
'avalon.pipeline' imported but unused

@@ -0,0 +1,167 @@
import os
import string
Copy link

Choose a reason for hiding this comment

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

'string' imported but unused

@mkolar
Copy link
Member

mkolar commented Feb 17, 2022

@BigRoy
Copy link
Collaborator

BigRoy commented Feb 17, 2022

Thanks for setting this up. This is coming from my messy colorbleed branch where I continuously pull in development streams and make live for testing in our production. I'm a bit wary about seeing all those commits in here but having the "merged output" at the end only contain the changes for Fusion. Because that would mean if I'd pull this it'd overwrite my local commits without telling me there's a merge conflict (since you had already 'resolved' that merge).

Any git master here to know how to squash this and avoid that issue?

The only real solution would be for me to extract these fusion changes more cleanly from our repo, no?

Actually no. This currently DOES contain all the other changes. We should extract only the Fusion changes from our repo.
Best might be to "cherry pick" only those commits related to the fusion code (with a bit of luck I have those commits completely separate).

Better ideas?


This PR currently has changes that you will not want to merge in OpenPype.

Comment on lines +6 to +7
print("Qt library found, nothing to do.")
from Qt import QtWidgets
Copy link
Member

Choose a reason for hiding this comment

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

I would do the print after import.

Suggested change
print("Qt library found, nothing to do.")
from Qt import QtWidgets
from Qt import QtWidgets
print("Qt library found, nothing to do.")

shutil.copy2(src, dst)
else:
shutil.copytree(src, dst)
__import__("avalon.fusion")
Copy link
Member

Choose a reason for hiding this comment

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

Module avalon.fusion does not exists anymore and it does not make sense to import it in prelaunch hook. Import of pyblish also does not make sense here.

@iLLiCiTiT
Copy link
Member

This currently DOES contain all the other changes. We should extract only the Fusion changes from our repo.
Best might be to "cherry pick" only those commits related to the fusion code (with a bit of luck I have those commits completely separate).

I should have read this first. If you can cherry pick only commits that are fusion related then that would be best. But since it seems that it is combined I would suggest copy paste changes you want to merge and commit just that. You can commit changes in "reasonable chunks" so the commits make sense that's up to you.

From my experience it is easier to copy and redo commits then cherry pick. Spend less time and nerves.

@BigRoy
Copy link
Collaborator

BigRoy commented Feb 18, 2022

I should have read this first. If you can cherry pick only commits that are fusion related then that would be best. But since it seems that it is combined I would suggest copy paste changes you want to merge and commit just that. You can commit changes in "reasonable chunks" so the commits make sense that's up to you.

Yes, that sounds about right. We could just take whatever is in the "Fusion" folder and other possible 'fusion related changes' and copy those changes over onto develop I think. With a PR set up with just that commit it'll be much easier to go over the changelog.

@jakubjezek001
Copy link
Member Author

jakubjezek001 commented Feb 18, 2022

I should have read this first. If you can cherry pick only commits that are fusion related then that would be best. But since it seems that it is combined I would suggest copy paste changes you want to merge and commit just that. You can commit changes in "reasonable chunks" so the commits make sense that's up to you.

Yes, that sounds about right. We could just take whatever is in the "Fusion" folder and other possible 'fusion related changes' and copy those changes over onto develop I think. With a PR set up with just that commit it'll be much easier to go over the changelog.

I could do it myself, but only that would be assigned ownership to myself which would not be fair.

@BigRoy BigRoy self-assigned this Feb 20, 2022
@BigRoy BigRoy mentioned this pull request Feb 20, 2022
8 tasks
@BigRoy
Copy link
Collaborator

BigRoy commented Feb 20, 2022

Thanks @jakubjezek001 - closing this in favor of #2769. Let me know if I forgot to include something important from your commits.

@BigRoy BigRoy closed this Feb 20, 2022
@jakubjezek001
Copy link
Member Author

Thanks @jakubjezek001 - closing this in favor of #2769. Let me know if I forgot to include something important from your commits.

Awesome, thanks @BigRoy - I was looking into #2769 and it seems to be having all of my changes regarding setFramerange.

@mkolar mkolar deleted the feature/bigroys_fusion_integration_fixes branch May 30, 2022 08:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

host: Fusion type: enhancement Enhancements to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants