Skip to content

Instantly share code, notes, and snippets.

@wmoten
wmoten / .cpp
Created October 21, 2018 11:28
getting crowds in a straight line-Vex
// 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
@wmoten
wmoten / getproxydict.py
Last active December 3, 2023 06:22
Getting Maya Proxy Attributes
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()