Miarmy Crowd Simulation Documentation (English)
Shave and Arnold
Notice: here now we have automation tool for this feature:
But if you still want to made by your own code, please refer below contents:
#------------------------------------ export ---------------------------------------
cmds.select("shaveHair3")
for i in range(500):
stri1 = str(i+1)
# setup drive agent:
cmds.setAttr("McdBrain1.charId", i+1)
cmd = 'arnoldExportAss -f "F:/yyMayaProject/Miarmy/data/testfur' + stri1 + '.ass" \
-startFrame 1.0 -s -endFrame 20.0 \
-mask 255 -lightLinks 1 -frameStep 1.0 -compressed \
-shadowLinks 1;'
mel.eval(cmd)
#------------------------------------ import ---------------------------------------
for i in range(500):
stri = str(i+1)
nodeName = "furTest" + stri;
cmds.createNode("aiStandIn", n = nodeName)
aaa = 'F:/yyMayaProject/Miarmy/data/testfur' + stri + '.#.ass.gz'
cmds.setAttr(nodeName + ".dso", aaa, type = "string")
cmds.connectAttr("time1.outTime", nodeName + ".frameNumber")
cmds.setAttr(nodeName + ".deferStandinLoad", 0)
500 fur ball with, 640 * 480
800 fur ball with, 1920 * 1080
Basefount Technology