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
| """Renumbers the selected geometry based on the selection order. | |
| """ | |
| import re | |
| from maya import cmds | |
| INDEX_REGEX = re.compile(r'\d+') | |
| def getNumber(s): | |
| match = INDEX_REGEX.findall(s) | |
| if not match: |
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
| """Renames the selected objects with numbers at the end with proper index | |
| numbers in the middle of the name. | |
| .. note:: | |
| Only the last occurrence of the index is used. | |
| """ | |
| import re | |
| from maya import cmds |
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
| import maya.cmds as cmds | |
| ipShapes = cmds.ls(type="imagePlane") | |
| currentIpShape = ipShapes[0] | |
| def mz_updateImagePlane(ipShape): | |
| currentIpShape = ipShape | |
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
| @echo off | |
| setlocal EnableDelayedExpansion | |
| rem *************************************************************************** | |
| rem This batch file attempts to find FFmpeg. If it doesn't exist, it downloads | |
| rem the latest version and extracts ffmpeg.exe. It finds a valid .tga image in | |
| rem the current directory and uses FFmpeg to convert it into an H.264 MP4. | |
| rem This script requires PowerShell 3.0 or later and .NET Framework 4.5 or | |
| rem later. They should be default in Windows 8 and later. |
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
| /** | |
| * 3-Button Nikon Camera Remote | |
| * | |
| * An Arduino camera remote that emulates the Nikon ML-L3. This can take single | |
| * shots or, by taking input through 2 buttons, take shots continuously at a | |
| * specified interval. This particular sketch is designed for the D3300. | |
| * | |
| * Buttons: | |
| * - The "add" button increments the least significant digit by 1. | |
| * - The "shift" button multiplies the current interval by 10. |