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
( | |
{ | |
"blog_name" = alonglistofthings; | |
"can_reply" = 0; | |
caption = ""; | |
date = "2013-10-11 03:20:20 GMT"; | |
followed = 0; | |
format = html; | |
highlighted = ( | |
); |
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
// | |
// C4WorkSpace.m | |
// TumblrGetPostsTest1 | |
// | |
// Created by Gregory Debicki on 2013-10-16. | |
// | |
#import "C4Workspace.h" | |
#import "TMAPIClient.h" |
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
// First auto generated objects script | |
int $xlimit = 10; | |
int $zlimit = 10; | |
int $boidAmount = 50; | |
string $name; | |
for ($i = 0; $i < $boidAmount; $i++) { |
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 | |
cubeList = cmds.ls( 'myCube*' ) | |
if len(cubeList) > 1: | |
cmds.delete(cubeList) | |
result = cmds.polyCube (w=1, h=1, d=1, name='myCube#') | |
#print ('result:' + str(result)) |
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
# randomCubes.py | |
import maya.cmds as cmds | |
import random | |
#get the same list of "random" numbers each time | |
random.seed (1234) | |
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
# randomInstances.py | |
import maya.cmds as cmds | |
import random | |
#get the same list of "random" numbers each time | |
random.seed (1234) | |
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
#aimAtFirst.py | |
import maya.cmds as cmds | |
selectionList = cmds.ls(orderedSelection = True) | |
if len( selectionList ) >= 2 : | |
print ( 'Selected Items: %s' %(selectionList)) | |
targetName = selectionList[0] | |
selectionList.remove (targetName) |
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
#keyRotation.py | |
import maya.cmds as cmds | |
def keyFullRotation (pObjectName, pStartTime, pEndTime, pTargetAttribute) : | |
cmds.cutKey(pObjectName, time=(pStartTime, pEndTime), attribute=pTargetAttribute) | |
cmds.setKeyframe(pObjectName, time=pStartTime, attribute=pTargetAttribute, value = 0) | |
cmds.setKeyframe(pObjectName, time=pEndTime, attribute=pTargetAttribute, value=360) | |
cmds.selectKey(pObjectName, time=(pStartTime, pEndTime), attribute=pTargetAttribute, keyframe=True) |
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
# random particle velocity -- with individual particle access (at long last) | |
import maya.cmds as cmds | |
import random | |
random.seed(1234) | |
amountOfParticles = 500 | |
r = 10 |
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
# random particle velocity -- (the right way) | |
import maya.cmds as cmds | |
import random | |
random.seed(1234) | |
# setup | |
amountOfParticles = 50 |