Skip to content

Conversation

@BigRoy
Copy link
Owner

@BigRoy BigRoy commented Feb 4, 2022

Brief description

Draft integration tweaks for Fusion integration.

  • OpenPype menu is now available in top-level menu
  • No scripts are copied to the local Fusion folders, instead Fusion Master Prefs are used
    • Thus also removes the need for FUSION_UTILITY_SCRIPTS_DIR in settings.
  • Fixed issue with DLL conflict for Qt library with Fusion's own dlls in starting OpenPype menu.
  • The OpenPype menu tool now uses OP stylesheet
  • Fixed being unable to load render family with the loaders
  • Matched OpenPype menu tool labels more with other hosts
  • Added current asset label to the OpenPype menu to clarify where that process currently thinks its operating (this is useful because Fusion run scripts in its own separate process, separate from Fusion, and thus things can easily get "desynced" from one another.
  • FUSION16_PYTHON36_HOME can contain a "list of paths" to allow using 'local' Python if it exists, or maybe fall back to e.g. a Python on a network share.

Example setting for environment for Fusion in Admin Settings:

{
    "FUSION16_PYTHON36_HOME": {
        "windows": "{LOCALAPPDATA}/Programs/Python/Python36;{NETWORKSHARE}/bin/windows/python36",
        "darwin": "~/Library/Python/3.6/bin",
        "linux": "/opt/Python/3.6/bin"
    },
    "PYTHONPATH": [
        "{FUSION16_PYTHON36_HOME}/Lib/site-packages",
        "{VIRTUAL_ENV}/Lib/site-packages",
        "{PYTHONPATH}"
    ],
    "PATH": [
        "{FUSION16_PYTHON36_HOME}",
        "{FUSION16_PYTHON36_HOME}/Scripts",
        "{PATH}"
    ],
    "OPENPYPE_LOG_NO_COLORS": "Yes",
    "REACTOR": "path/to/Reactor/"
}

- OpenPype menu is now available in top-level menu
- No scripts are copied to the local Fusion folders, instead Fusion Master Prefs are used
  - Thus also removes the need for FUSION_UTILITY_SCRIPTS_DIR in settings.
- Fixed issue with DLL conflict for Qt library with Fusion's own dlls in starting OpenPype menu.
@BigRoy BigRoy changed the base branch from colorbleed to colorbleed_before_fusion February 5, 2022 15:18
families = ["animation",
"camera",
"imagesequence",
"render"
Copy link
Owner Author

Choose a reason for hiding this comment

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

Missing comma at the end.

families = ["animation",
"camera",
"imagesequence",
"render"
Copy link
Owner Author

Choose a reason for hiding this comment

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

Missing comma at the end.

f'{os.environ["FUSION16_PYTHON36_HOME"]}')

import subprocess
subprocess.Popen(["pip", "install", "PySide2"])
Copy link
Owner Author

Choose a reason for hiding this comment

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

Warning: This can install into e.g. OpenPype .venv due to not explicitly enough installing into the correct python.

A fix was implemented here: 3d5fd09

@BigRoy
Copy link
Owner Author

BigRoy commented Feb 23, 2022

Closing this in favor of ynput#2769 which contains this and much more.

@BigRoy BigRoy closed this Feb 23, 2022
BigRoy pushed a commit that referenced this pull request May 30, 2022
BigRoy pushed a commit that referenced this pull request Mar 7, 2023
Fusion: New Publisher tweaks to PR
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.

2 participants