Skip to content

Instantly share code, notes, and snippets.

View AndresMWeber's full-sized avatar
💭
Katas for Life!

Andres Weber AndresMWeber

💭
Katas for Life!
View GitHub Profile
@liorbenhorin
liorbenhorin / Simple_MayaDockingClass.py
Created December 1, 2017 15:04
Simple way to Docking Qt widgets to Maya 2017+
'''
Template class for docking a Qt widget to maya 2017+.
Author: Lior ben horin
12-1-2017
'''
import weakref
import maya.cmds as cmds
import maya.OpenMayaUI as omui
@jlouros
jlouros / aws.upload-folder-to-s3.js
Last active September 8, 2023 22:48
Upload folder to S3 (Node.JS)
const AWS = require("aws-sdk"); // from AWS SDK
const fs = require("fs"); // from node.js
const path = require("path"); // from node.js
// configuration
const config = {
s3BucketName: 'your.s3.bucket.name',
folderPath: '../dist' // path relative script's location
};
@rogeliog
rogeliog / App.js
Created December 6, 2016 19:15
Composition and filters in React
/*
This is a minimal working example
*/
import React, { Component } from 'react';
import Filters from './Filters';
import InputFilter from './InputFilter';
import allMovies from './movies';
class App extends Component {
@justinfx
justinfx / maya_unique_name.py
Last active September 14, 2016 22:15
Example of an approach to generating a unique name for a Maya object, using Maya commands API
"""
Re: https://groups.google.com/d/topic/python_inside_maya/ndjexeQrZs8/discussion
Example of an approach to generating a unique name for a Maya object.
Author: Justin Israel ([email protected])
"""
def uniqueNamePattern(base="object", padding=1):
"""
@cube-drone
cube-drone / automation.md
Last active August 7, 2024 10:34
Automation For The People

Automation for the People

Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.

"Don't Use Manual Procedures".

This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.

The trouble was that I hadn't much of an idea how to actually go

@z3ntu
z3ntu / mayaOnUbuntu.sh
Last active November 1, 2019 19:37 — forked from Era-Dorta/mayaOnUbuntu.sh
Shell script for installing Maya 2016 SP4. Tested on Ubuntu 15.10
#!/bin/bash
# Heith Seewald 2012
# Garoe Dorta 2015
# Luca Weiss 2015
# Also based on https://gist.github.com/MichaelLawton/ee27bf4a0f591bed19ac
# Feel free to extend/modify to meet your needs.
#### Lets run a few checks to make sure things work as expected.
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
@r4inm4ker
r4inm4ker / layerEditorWidget.py
Last active September 17, 2015 14:06
embed layer editor inside pyside / pyqt widget
from PySide import QtCore, QtGui
import shiboken
import maya.OpenMayaUI as omui
from maya.app.general.mayaMixin import MayaQWidgetDockableMixin
import pymel.core as pm
def wrapInstance(ptr, base=None):
"""
Utility to convert a pointer to a Qt class instance (PySide/PyQt compatible)
borrowed from http://nathanhorne.com/?p=485
@mclavan
mclavan / pyside_session2_part2_notes.py
Last active June 22, 2016 13:54
PySide Session - Part 2 - Notes
'''
PySide Session 2 - Notes
'''
'''
Packages
'''
# Window flags
@kyle-ilantzis
kyle-ilantzis / open-w-atom.reg
Last active June 1, 2021 17:20
Adds 'Open in Atom' to context menu in Windows Explorer.
Windows Registry Editor Version 5.00
;
; Adds 'Open in Atom' to context menu (when you right click) in Windows Explorer.
;
; Based on https://github.com/Zren/atom-windows-context-menu. It didn't work
; https://github.com/Zren/atom-windows-context-menu/issues/1.
;
; Save this file to disk with a .reg extension. Replace C:\\Atom\\atom.exe with
; the path to the atom executable on your machine.
@danbradham
danbradham / npapi.py
Last active March 9, 2016 20:30
Maya nParticle API
import functools
import maya.cmds as cmds
import maya.mel as mel
connect_dynamic = functools.partial(cmds.connectDynamic, delete=False)
disconnect_dynamic = functools.partial(cmds.connectDynamic, delete=True)
def chunk(fn):