Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Various Code Snippets.
Python JavaScript
branch: develop

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
3dsmax
katana
mari
maya
nuke
others Merge branch 'develop'
photoshop
.gitignore
LICENSE
README.rst

README.rst

Snippets

Introduction

Snippets is a GitHub Repository I decided to create as a host to the various code snippets I use on a daily basis and that are not properly interfaced. The idea came from this Thread at CGFeedback where I provided a few Snippets: http://www.cgfeedback.com/cgfeedback/showthread.php?t=900

Installation / Usage

The Snippets are usually executed by a simple copy / paste into your target 3d Package Scripting Interpreter. Adobe Photoshop scripts must be installed into the Adobe Photoshop scripting folder:

  • Mac Os X: /Applications/Adobe Photoshop CS*/Presets/Scripts/
  • Windows: C:Program FilesAdobeAdobe Photoshop CS*PresetsScripts

Alternatively, on Maya, a Snippets Loader is provided, it requries PyQt, Foundations package available from Github: https://github.com/KelSolaar/Foundations, Umbra package available from Github: https://github.com/KelSolaar/Umbra and ordereddict Package from Pypi: http://pypi.python.org/pypi/ordereddict. Launching it is done issuing the following Python code:

import sys

FOUNDATIONS_PATH = "Path/To/Foundations/Folder/Foundations/"

if FOUNDATIONS_PATH not in sys.path:
     sys.path.append(FOUNDATIONS_PATH)

LOADER_PATH = "Path/To/Snippets/Folder/Snippets/maya"

if LOADER_PATH not in sys.path:
     sys.path.append(LOADER_PATH)

import snippets.engine
snippets.engine.run()

import snippets.loader
import snippets.ui.common

LOADER = snippets.loader.Loader(snippets.ui.common.getMayaWindow())
LOADER.show()

A simple popup list ( Similar to Nuke "tab" key one ) is available by using the following Python code ( You can bind it to a shortcut ):

import sys

FOUNDATIONS_PATH = "Path/To/Foundations/Folder/Foundations/"

if FOUNDATIONS_PATH not in sys.path:
     sys.path.append(FOUNDATIONS_PATH)

LOADER_PATH = "Path/To/Snippets/Folder/Snippets/maya"

if LOADER_PATH not in sys.path:
     sys.path.append(LOADER_PATH)

import snippets.engine
snippets.engine.run()

import snippets.popup

POPUP = snippets.popup.Popup()
POPUP.show()

About

Snippets by Thomas Mansencal - 2010 - 2014
Copyright © 2010 - 2014 – Thomas Mansencal – thomas.mansencal@gmail.com
This software is released under terms of GNU GPL V3 license: http://www.gnu.org/licenses/
Something went wrong with that request. Please try again.