Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| // 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) | |
| { |
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
| // 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) |
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
| #!/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 |
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
| (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'"); |