Giter Club home page Giter Club logo

grill's Introduction

The Grill

Build Status codecov Documentation Status PyPI version PyPI

Cook digital.

grill namespace, meta-package with core tools and philosophy guidelines.

With future users and readers in mind, the grill aims to stick to the following principles:

Foundational tools:

Install

python -m pip install grill

Extra Dependencies

The following optional dependencies should be installed separately.

  • graphviz (for graph widgets)
  • usdview (hopefully will be available soon via pypi). In the meantime, it can be downloaded from NVidia or built from USD source (conda recipe)

Conda Environment Example

For environment management, the grill uses conda. This is a walk-through on how to start using the grill tools with a fresh conda environment.

  1. If conda is not on the system yet, install miniconda.

    Note: conda environment manager comes in two flavours:

    • Anaconda, which is conda + a lot of extra utilities.
    • miniconda is the main bootstrap for conda and is the preferred one. When in doubt, install this one.
  2. Launch Anaconda Prompt (it came as part of the miniconda installation)

  3. Create a new conda environment with python=3.7, e.g:

    (base) C:\>conda create -n grilldemo01 python=3.7
    
  4. Activate that environment

    (base) C:\>conda activate grilldemo01
    
  5. Install grill via pip

    (grilldemo01) C:\>python -m pip install grill
    
  6. If missing, optionally install graphviz via conda

    (grilldemo01) C:\>conda install -c anaconda graphviz
    
  7. If missing, optionally install usdview via NVidia builds or via building USD from source using this conda recipe.

    Note that if you're installing via the NVidia builds, you'll need PyOpenGL as well:

    (grilldemo01) C:\>python -m pip install PyOpenGL
    
  8. Extend the PXR_PLUGINPATH_NAME environment variable to include the plugInfo.json file from the grill.resources path location.

    To know where the installed file is, run the following python command:

    (grilldemo01) C:\Users\Christian>python -c "from pathlib import Path;from grill import resources;path=(Path(resources.__path__._path[0]) / 'plugInfo.json');assert path.is_file();print(path)"
    

    It will print something like:

    C:\Users\Christian\.conda\envs\grilldemo01\lib\site-packages\grill\resources\plugInfo.json
    

    Which you can use to extend the pixar environment variable, e.g:

    (grilldemo01) C:\Users\Christian>set PXR_PLUGINPATH_NAME=%PXR_PLUGINPATH_NAME%;C:\Users\Christian\.conda\envs\grilldemo01\lib\site-packages\grill\resources\plugInfo.json
    
  9. You should be able to launch usdview and see the Grill menu on the menu bar.

    (grilldemo01) C:\Users\Christian>usdview B:\read\cg\downloads\Kitchen_set\Kitchen_set\Kitchen_set.usd
    

    usdview_grill_menu

grill's People

Contributors

chrizzftd avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.