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 | |
import maya.OpenMaya as om | |
import random | |
random.seed (1234) | |
amountOfParticles = 10 | |
dist = 10 | |
ease = 1 |
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 | |
import maya.OpenMaya as om | |
import random | |
random.seed (1234) | |
amountOfParticles = 5000 | |
positionList = list() |
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
# master lists version - Boids | |
import maya.cmds as cmds | |
import random | |
from maya.OpenMaya import MVector | |
random.seed(1234) | |
# setup |
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
# master lists version - Boids | |
import maya.cmds as cmds | |
import random | |
from maya.OpenMaya import MVector | |
random.seed(1234) | |
# setup |
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) | |
# maybe try making a list that cross checks before and after dynamics? is that a bad idea? | |
import maya.cmds as cmds | |
import random | |
from maya.OpenMaya import MVector | |
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
# random particle velocity -- (the right way) | |
import maya.cmds as cmds | |
import random | |
from maya.OpenMaya import MVector | |
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
if (particleShape1.particleId == 0) { | |
vector $myv = particleShape1.position; | |
string $myPy = "myOtherFunc(" + $myv.x + "," + $myv.y + "," + $myv.z +")"; | |
python($myPy); | |
} |
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 | |
from maya.OpenMaya import MVector | |
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
global def myGlobalPythonThing (): | |
return "heres a working python!" | |
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
global proc string myGlobalProc() | |
{ | |
return "my thing works!"; | |
} |