-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ue4plugins/gpltech
Merging all updates from Gpltech for official release
- Loading branch information
Showing
20 changed files
with
1,588 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Flake 8 PEP and lint configuration - https://gitlab.com/pycqa/flake8 | ||
# | ||
# This defines the official lint and PEP8 rules for this repository | ||
# | ||
# You can run this locally by running 'pip install flake8' and then | ||
# >flake8 . | ||
|
||
[flake8] | ||
|
||
# Things we don't want to lint | ||
exclude = | ||
.tox, | ||
.git, | ||
.flake8, | ||
.gitignore, | ||
.travis.yml, | ||
.cache, | ||
.eggs, | ||
*.rst, | ||
*.yml, | ||
*.pyc, | ||
*.pyo, | ||
*.egg-info, | ||
__pycache__, | ||
# Those are our third parties, do not lint them | ||
vendors, | ||
# Skip __init__.py files, to not have a lot of 'xxx' imported but unused | ||
python/__init__.py, | ||
python/*/__init__.py, | ||
# Skip the auto-generated ui file. | ||
python/*/ui, | ||
venv | ||
winenv | ||
|
||
# Ignore some errors | ||
# | ||
# E402 module level import not at top of file | ||
# E501 line too long (112 > 79 characters) | ||
# N802 Variables should be lower case. (clashes with Qt naming conventions) | ||
# N806 Variables should be lower case. (clashes with Qt naming conventions) | ||
# W503 line break before binary operator (it breaks before, not after) | ||
|
||
ignore = E501, E402, N802, N806, W503 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,7 @@ pip-log.txt | |
|
||
# Max OS X Desktop Services Store files | ||
.DS_Store | ||
|
||
# Visual Studio | ||
.vs | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# This file is based on templates provided and copyrighted by Autodesk, Inc. | ||
# This file has been modified by Epic Games, Inc. and is subject to the license | ||
# file included in this repository. | ||
|
||
# Styles the code properly | ||
# Exclude the UI files, as they are auto-generated. | ||
exclude: "ui\/.*py$" | ||
# List of super useful formatters. | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
hooks: | ||
# Ensures the code is syntaxically correct | ||
- id: check-ast | ||
language_version: python3 | ||
# Ensures a file name will resolve on all platform | ||
- id: check-case-conflict | ||
# Checks files with the execute bit set have shebangs | ||
- id: check-executables-have-shebangs | ||
# Ensure there's no incomplete merges | ||
- id: check-merge-conflict | ||
# Adds an empty line if missing at the end of a file. | ||
- id: end-of-file-fixer | ||
# Makes sure requirements.txt is properly formatted | ||
- id: requirements-txt-fixer | ||
# Removes trailing whitespaces. | ||
- id: trailing-whitespace | ||
# Leave black at the bottom so all touchups are done before it is run. | ||
- repo: https://github.com/ambv/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,70 @@ | ||
## Documentation | ||
|
||
For more information on how to run the Shotgun/Unreal integration, please see the [support documentation](https://docs.unrealengine.com/en-us/Editor/Content/Using-Unreal-Engine-with-Autodesk-Shotgun). | ||
This repository is a part of the ShotGrid Pipeline Toolkit/Unreal integration and contains the source code for SG TK Unreal engine. | ||
|
||
The simplest way to add the ShotGrid Toolkit integration to Unreal is to start from the available standard Shotgrid Toolkit configurations: | ||
- Default2 SG TK configuration: https://github.com/ue4plugins/tk-config-unreal | ||
- Basic SG TK configuration: https://github.com/ue4plugins/tk-config-unrealbasic | ||
|
||
However, it is possible to manually add the integration to an existing SG TK configuration from the files provided by the [default2 based Unreal config](https://github.com/ue4plugins/tk-config-unreal) or the [basic based Unreal config](https://github.com/ue4plugins/tk-config-unrealbasic). | ||
|
||
### Configuring the file system schema for a default2 base configuration | ||
If your SG TK configuration needs a file system schema, copy the following files and directories from `core/schema` of [this config](https://github.com/ue4plugins/tk-config-unreal) under the `core/schema` folder of your existing configuration. | ||
``` | ||
schema/ | ||
└── project | ||
├── assets | ||
│ └── asset_type | ||
│ └── asset | ||
│ └── step | ||
│ ├── publish | ||
│ │ └── fbx | ||
│ │ └── placeholder | ||
│ └── work | ||
│ └── fbx | ||
│ └── placeholder | ||
└── sequences | ||
└── sequence | ||
└── editorial | ||
└── placeholder | ||
``` | ||
|
||
### Adding the SG TK Unreal components | ||
Both configs have a self contained `env/includes/unreal` folder which contains all definitions needed by the integration | ||
``` | ||
unreal/ | ||
├── frameworks.yml | ||
├── settings | ||
│ ├── tk-multi-loader2.yml | ||
│ ├── tk-multi-publish2.yml | ||
│ ├── tk-multi-shotgunpanel.yml | ||
│ └── tk-unreal.yml | ||
├── templates.yml | ||
└── tk-unreal-location.yml | ||
``` | ||
|
||
This folder should be copied to the `env/includes` folder of your existing configuration. | ||
|
||
Then the following files (or similar) need to be modified to add the Unreal integration: | ||
|
||
- *core/templates.yml*: | ||
- add `include: ../env/includes/unreal/templates.yml` | ||
- *env/project.yml*: | ||
- add `- ./includes/unreal/settings/tk-unreal.yml` to *includes* | ||
- add `tk-unreal: "@settings.tk-unreal.project"` to *engines* | ||
- *env/asset_step.yml*: | ||
- add `- ./includes/unreal/settings/tk-unreal.yml` to *includes* | ||
- add `tk-unreal: "@settings.tk-unreal.asset_step"` to *engines* | ||
- *env/includes/settings/tk-maya.yml* or *env/includes/maya/asset_step.yml*: | ||
- add `- ../unreal/settings/tk-multi-publish2.yml` to *includes* | ||
- replace *tk-multi-publish2* asset step setting with: `tk-multi-publish2: "@settings.tk-multi-publish2.maya.asset_step.unreal"` | ||
- *env/includes/frameworks* or *env/includes/common/frameworks.yml*: | ||
- add `include: unreal/frameworks.yml` | ||
- *env/includes/settings/tk-desktop.yml* or *env/includes/desktop/project.yml*: | ||
- add "*Unreal*" to Creative Tools group. | ||
|
||
|
||
|
||
## See also: | ||
For more information on how to run the ShotGrid/Unreal integration, please see the [support documentation](https://docs.unrealengine.com/4.27/en-US/ProductionPipelines/UsingUnrealEnginewithAutodeskShotGrid). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Python package | ||
# Create and test a Python package on multiple Python versions. | ||
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/python | ||
|
||
# The github_ci_token variable is defined in the Azure Pipeline web page as a | ||
# secret variable and is a github personal token. | ||
|
||
jobs: | ||
- job: 'Flake8' | ||
pool: | ||
vmImage: ubuntu-latest | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: 3.7 | ||
architecture: 'x64' | ||
|
||
- script: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
displayName: 'Install prerequisites' | ||
- script: | | ||
python -m pip install flake8 | ||
flake8 . | ||
displayName: 'Run flake8' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.