Digital, Inc. 37 def addObjectsAsInputToBifrostGraph(objs): cmds.vnnCompound(“|bifrostGraph1|bifrostGraphShape1”, “/”, addNode=“BifrostGraph,Core::Array,build_array”) objsL = cmds.ls(objs, long=True) for o in objsL: longN = cmds.listRelatives(o, shapes=True, fullPath=True)[0] shortN = cmds.ls(longN, shortNames=True)[0] print(shortN) cmds.vnnCompound( “|bifrostGraph1|bifrostGraphShape1”, “/”, addIONode=True) cmds.vnnCompound(“|bifrostGraph1|bifrostGraphShape1”, “/”, renameNode=[“input1”, shortN]); cmds.vnnNode(“|bifrostGraph1|bifrostGraphShape1", "/"+shortN, createOutputPort=[shortN, "Amino::Object"], portOptions="pathinfo={path="+longN+";setOperation=+;active=true}") cmds.vnnNode("|bifrostGraph1|bifrostGraphShape1", "/build_array", createInputPort=[shortN, "Amino::Object"]) cmds.vnnConnect("|bifrostGraph1|bifrostGraphShape1", "/"+shortN+"."+shortN, "/build_array."+ shortN) import maya.cmds as cmds def frameByFrame(obj, start, end): for frame in range(start,end+1): cmds.currentTime(frame) cmds.duplicate(obj) frameByFrame("pSphere1", 1,50) アニメーションの出力 Bifrostへインポート