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
View Delete Subword Backward.sublime-macro
// 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"} }
"by": "subwords",
"extend": true,
''' 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.
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():
# 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
# GNU General Public License
# The command will be added to the Get>Property menu.
import colorsys
View gloss2spec_alpha.bat
python %1