Skip to content

Instantly share code, notes, and snippets.

@meshula
Last active October 2, 2020 02:08
Show Gist options
  • Save meshula/1687f63b07140848570d5168b1d41908 to your computer and use it in GitHub Desktop.
Save meshula/1687f63b07140848570d5168b1d41908 to your computer and use it in GitHub Desktop.
USD conda
conda create -n otio-py38 python=3.8
conda activate otio-py38
conda install -c anaconda cmake
#conda install -c anaconda jinja2 # for USD
python -m pip install PySide2 PyOpenGL
#conda install -c rdonnelly vs2019_win-64 # developer command prompt for VS2019
#Build your projects

Test PySide with hello.py:

import sys
from PySide2.QtWidgets import QApplication, QLabel

def window():
   app = QApplication(sys.argv)
   b = QLabel('Hello World!')
   b.setGeometry(100,100,200,50)
   b.move(50,20)
   b.show()
   sys.exit(app.exec_())
	
if __name__ == '__main__':
   window()

Build an extensive USD:

python path/to/usd/build_scripts/build_usd.py -v --generator=Xcode --no-tests --no-examples --no-tutorials --tools --no-docs --usdview --openimageio --alembic --no-hdf5 --draco --materialx --ptex --opencolorio --embree path/to/usd-install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment