Skip to content

Instantly share code, notes, and snippets.

Vasil Shotarov vshotarov

Block or report user

Report or block vshotarov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vshotarov
vshotarov / controlShapeManagerFull.py
Last active May 27, 2017
An example control shape manager for Maya all contained in one file for demo purposes.
View controlShapeManagerFull.py
'''A simple example of a control shape manager in Maya contained in one file for easier access. It can be used for loading, saving, copying, etc. control shapes.
This file is used for demonstration purposes, to be followed along with in this blog post
http://bindpose.com/creating-maya-control-shape-manager
'''
import os
import json
import re
@vshotarov
vshotarov / markingMenu.py
Created May 13, 2017
Example of a custom marking menu in Maya, scripted in Python.
View markingMenu.py
'''A simple example of a custom marking menu in Maya. The benefits of doing it this way with Python are that
it is very flexible and easily maintainable. Additionally, you can keep it in a version control system.
This file is used for demonstration purposes, to be followed along with in this blog post
http://bindpose.com/custom-marking-menu-maya-python/
'''
import maya.cmds as mc
@vshotarov
vshotarov / ikFkSwitch.py
Last active Mar 4, 2019
Functions for switching between IK and FK setups, matching the existing pose.
View ikFkSwitch.py
'''File containing simple commands for switching between IK and FK and keeping the pose.
This file is used for demonstration purposes, to be followed along with in this blog post
http://bindpose.com/seamless-ik-fk-switch-maya-python/
'''
import maya.cmds as mc
def ikFkSwitch_sameOrient():
@vshotarov
vshotarov / shelfBase.py
Last active Mar 3, 2019
Maya base class for building custom shelves.
View shelfBase.py
import maya.cmds as mc
def _null(*args):
pass
class _shelf():
'''A simple class to build shelves in maya. Since the build method is empty,
it should be extended by the derived class to build the necessary shelf elements.
@vshotarov
vshotarov / server.py
Last active Sep 15, 2017
Simple socket chat server
View server.py
import socket
import threading
class ThreadedServer(object):
def __init__(self, host, port):
self.host = host
self.port = port
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
You can’t perform that action at this time.