You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/AtomLyIntegration/TechnicalArt/DccScriptingInterface/3rdParty/Python
Jonny Galloway cbba00d473
Atom/16852 (#6316)
* discover build folder, don't assume or require

Signed-off-by: Jonny Gallowy <gallowj@amazon.com>

* update config_utils, no cyclical imports

Signed-off-by: Jonny Gallowy <gallowj@amazon.com>

* improved docstrings and some code formatting

Signed-off-by: Jonny Gallowy <gallowj@amazon.com>

* updates to config.py

Signed-off-by: Jonny Gallowy <gallowj@amazon.com>

* updates to config_utils.py

Signed-off-by: Jonny Gallowy <gallowj@amazon.com>

* dccsi bootstrap changes

Signed-off-by: Jonny Gallowy <gallowj@amazon.com>

* fixed testing for bootstrap externally

Signed-off-by: Jonny Gallowy <gallowj@amazon.com>

* added note for installing substance automation toolkit for tool dev

Signed-off-by: Jonny Gallowy <gallowj@amazon.com>

* based on user feedback suppress global debug by default in IDE

Signed-off-by: Jonny Gallowy <gallowj@amazon.com>

* small adjustments

Signed-off-by: Jonny Gallowy <gallowj@amazon.com>
4 years ago
..
Lib Integrating up through commit 90f050496 5 years ago
.gitignore Several small fixes to the DCCsi to match some o3de changes 5 years ago
README.txt Atom/16852 (#6316) 4 years ago

README.txt

DccScriptingInterface (DCCsi)

This location can be extended with additional 3rdParty Python Utils, Tools, Packages, etc.

These are not installed or distributed with O3DE

However, there is some stubbed scaffolding in place.

This is a bootstrapped sandbox for installing python libs (version bootstrapped procedurally):
C:\Depot\o3de-engine\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface\3rdParty\Python\Lib\2.x\2.7.x\site-packages
C:\Depot\o3de-engine\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface\3rdParty\Python\Lib\3.x\3.7.x\site-packages

Any libs installed to this location will be accessible (use at your own risk)

For instance, if you want to add py2.7 compatible libs, for apps like Maya2020:
"C:\Depot\o3de-engine\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface\Tools\DCC\Maya\readme.txt"

These pyside2-tools can be useful, and they are not pip installed, nor distributed.
C:\Depot\o3de-engine\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface\3rdParty\Python\pyside2-tools

pyside2-tools instructions:

1. clone the repo in this location: C:\Depot\o3de-engine\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface\3rdParty\Python
    >git clone https://github.com/pyside/pyside2-tools

2. to use as a python package ...
    find this and copy:
        "< local DCCsi >\3rdParty\Python\pyside2-tools\pyside2uic\__init__.py.in"

    and rename to this:
    	"< local DCCsi >\3rdParty\Python\pyside2-tools\pyside2uic\__init__.py"

3. add to PYTHONPATH: < local DCCsi >\3rdParty\Python
	in .py something like: site.addsitedir(DCCSI_PYSIDE2_TOOLS)

See: "< local DCCsi >\config.py"

Substance Automation Toolkit (SAT) Instructions:
Substance has a licensed python API for automating material data workflows.  By default, their instructions cover installing it to a python 'system interpreter', however if we want to install it for use within the DCCsi (for custom tools) or even potentially to build inter-op and integrations with O3DE editors, we want to install it in a way that is accessible.

Install Substance Automation Toolkit 3rd party library to DCCsi 3rdParty sandbox:

> C:\Depot\o3de\python> pip install "c:\< path to >\SubstanceAutomationToolkit\Python API\Pysbs-2021.2.2-py2.py3-none-win_amd64.whl" --target="C:\Depot\o3de\Gems\AtomLyIntegration\TechnicalArt\DccScriptingInterface\3rdParty\Python\Lib\3.x\3.7.x\site-packages"