This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Middleware providing the current request for this thread. | |
Can be used to i.e. retrieve the current user: `user = current_request().user` | |
Needs to be added to the apps MIDDLEWARE list. | |
''' | |
from threading import current_thread | |
from django.utils.deprecation import MiddlewareMixin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// Delete Backward. | |
// Put this into your user packages folder. Can be found by navigating to Preferences > Browse Packages... in Sublime Text. | |
// Then add something like this to your user Key Bindings. | |
// { "keys": ["alt+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/User/Delete Subword Backward.sublime-macro"} } | |
[ | |
{ | |
"args": | |
{ | |
"by": "subwords", | |
"extend": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' SelectPointsByEnvelope ''' | |
# -------------------------------- | |
# SelectPointsByEnvelopeWeight | |
# | |
# Selects all points on object 'enveloped_mesh' which have a weight value for | |
# 'deformer' bigger than 'weight_threshold'. | |
# | |
# Installation: | |
# Put this file into C:/Users/<username>/Autodesk/Softimage_XX/Application/Plugins. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from win32com.client import constants as const | |
xsi = Application | |
# Possible Values: siX, siY, siZ, siXY, siXZ, siYZ, siXYZ. | |
axis = const.siX | |
# Set to desired absolute values. | |
x = 0 | |
y = 0 | |
z = 0 | |
def move_points(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Changes Vertex Color Values. | |
# This should go to <USER>\\Autodesk\\<Softimage Version>\\Application\\Plugins. | |
# It's not important how the file is named. | |
# | |
# Code Copyright (C) Benedikt Schatz http://schlechtwetterfront.github.com | |
# | |
# GNU General Public License http://www.gnu.org/licenses/. | |
# | |
# The command will be added to the Get>Property menu. | |
import colorsys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python gloss.py %1 | |
exit |