Coder Social home page Coder Social logo

liaokongvfx / thorium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thoriumgroup/thorium

0.0 1.0 0.0 324 KB

Thorium combines various Nuke python modules and tools, providing a streamlined way of managing their versions and customizing the installation.

License: Other

Python 100.00%

thorium's Introduction

Thorium

Thorium combines various python modules and tools originally sourced from Nukepedia. It provides a streamlined way of managing their versions and customizing the installation. While thorium ships as a complete package, individual submodules can be activated and deactivated via config files or arguments passed to thorium.

Installation

Before we get into installation, a quick warning. Thorium is made up of many submodules that are designed and still released to work independent of thorium. When thorium imports those modules, it imports them into the global namespace so that Nuke can access the modules directly, without having to go through the thorium namespace. It does this by directly accessing and importing straight into the __builtin__ namespace. This is normally not recommended.

While every effort has been made to ensure that these submodules are named uniquely, the python namespace can get very tricky and managers of facility installations should carefully compare the modules thorium is set to import with any global facility modules, otherwise those facility modules will be inaccessible from within Nuke.

Installation can be done via pip (pip install thorium), an rpm or by manually placing the 'thorium' folder in your .nuke directory or anywhere else within the Nuke python path.

Then, add the following lines to your 'init.py' file: :: import thorium thorium.run()

And the following lines to your 'menu.py' file: :: import thorium thorium.run_gui()

You can turn off the usage of specific modules by passing a dictionary with the module name and a bool. :: import thorium thorium.run_gui({'animatedSnap3D': False})

Now animatedSnap3D will not load, and every other module will. You can reverse this behavior by passing the default argument False, which will cause all modules not specifically listed as True to not be loaded. :: import thorium thorium.run_gui({'animatedSnap3D': True}, default=False)

Now animatedSnap3D will be the ONLY module that loads- all others will not load, since the default is False.

Usage

After the run functions above have executed, each submodule will be available in it's native namespace. Modules with menu items will appear in their correct place, and the python commands will be available for use from anywhere in Nuke.

List of 3rd Party Modules

List of Thorium Modules

  • keying
    • Various keying tools unique to Thorium, such as EdgeColor, SoftKey and SpillSuppress
    • By Sean Wallitsch & Chris Kenny
  • utils
    • Generic Nuke python utilities, used to help construct the Thorium package. Includes Groupmo for building gizmo-like groups with python.
    • By Sean Wallitsch

License

The MIT License (MIT)

Thorium Copyright (c) 2014 Sean Wallitsch

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

thorium's People

Contributors

shidarin avatar

Watchers

 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.