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
// inserting a pop wrangle and | |
// POP WRANGLE START | |
int num_id_in_group(export int list[]; string geo_path) | |
{ // Returns number of ids | |
int c = 0; | |
int result = 0; | |
int counter = npoints(geo_path); | |
for (int i = 0; i < counter; i++) | |
{ //Agent Loop | |
list[c] = point(geo_path,"id",i); // Get the ID |
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
from maya import cmds, OpenMaya | |
from pprint import pprint | |
import os | |
def _getProxyAttributeCommands(cmdsnode): | |
#Takes a string of a maya object, like 'pshere1' | |
#checks for proxy attributes | |
#returns mel command to make that proxy attribute | |
proxyAttrCmds = [] | |
selectionList = OpenMaya.MSelectionList() |