This file contains 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
proc switch_camera() { | |
// List of camera names in the cycle | |
string $cameras[] = {"persp", "front", "side", "top"}; | |
// Get the current camera | |
string $current_camera = `lookThru -query`; | |
// Determine the next index in the cycle | |
int $current_index = -1; | |
// Iterate through camera list to find current camera index |
This file contains 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 pymel.core as pm | |
def insertKeyframeBetweenKeys(): | |
try: | |
objects = pm.ls(sl=1) | |
attrs = pm.selectionConnection('graphEditor1FromOutliner', q=1, object=1) | |
for attr in attrs: | |
buffer = attr.split(".") | |
buffer = buffer[1] |