Skip to content

Instantly share code, notes, and snippets.

View MaxSteven's full-sized avatar

MaxSteven

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxSteven
MaxSteven / performFileDropAction.mel
Created August 21, 2018 07:32 — forked from Meatplowz/performFileDropAction.mel
Override the Maya Drag and Drop Behavior for File Open/Import
// Randall Hess [email protected]
// Instructions: Copy this file over your local maya version to override the default behavior
// Additional: You can also build and load this as a module and not overwrite the local maya file.
// Location: C:\Program Files\Autodesk\MayaXX\scripts\others\performFileDropAction.mel
global proc int
performFileDropAction (string $theFile)
{
@Meatplowz
Meatplowz / performFileDropAction.mel
Last active September 23, 2025 08:02
Override the Maya Drag and Drop Behavior for File Open/Import
// Randall Hess [email protected]
// Instructions: Copy this file over your local maya version to override the default behavior
// Maya 2022 and Higher
// Additional: You can also build and load this as a module and not overwrite the local maya file.
// Location: C:\Program Files\Autodesk\MayaXX\scripts\others\performFileDropAction.mel
global proc int
performFileDropAction (string $theFile)
@MaxSteven
MaxSteven / Video converter linux
Created December 13, 2017 11:30 — forked from RicardoViana/Video converter linux
Video converter for Linux. PYQT4, phonon, avconv
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from PyQt4 import QtGui, QtCore
from PyQt4.phonon import Phonon
from functools import partial
import skimage.io as io
@bigxixi
bigxixi / RunScript.jsx
Last active December 7, 2017 10:04
Run AE script directly in AE.
(function drawUI(thisObj)
{
function UI(thisObj){
var win = (thisObj instanceof Panel) ? thisObj : new Window("palette","Run Script",[0,0,500,450],{resizeable:true,});
if(win != null){
var btn = win.add("button",[180,415,330,435],"Run");
var script = win.add("edittext",[5,5,505,405] ,"Paste your code here, and run to test.",{readonly:0,noecho:0,borderless:0,multiline:1,enterKeySignalsOnChange:0});
btn.onClick = function(){
if(!app.preferences.getPrefAsLong("Main Pref Section", "Pref_SCRIPTING_FILE_NETWORK_SECURITY")){
alert("Please check this option:\n'Preferences->General->Allow Scripts to Write Files and Access Network'");