RealFlow 經驗隨記 002 – Python 小練習
XD 話說,看到的 Python 範例是 Constraint 的,但是 RealFlow 5 以後沒有Constraint 了啊
真麻煩! 用 addConstraint 結果增加了 joint 而已,而且,沒有任何力學或關係作用。
abc = GUINodesPickerDialog.new() ndlist = abc.show() for parentnodes in ndlist: for childnodes in ndlist: if childnodes != parentnodes: curCON = scene.addConstraint("Fixed") curCON.setParameter("child",childnodes.getName()) curCON.setParameter("parent",parentnodes.getName()) curCON.setParameter("Self Collision","After break") curCON.setParameter("Breakable Force",True) curCON.setParameter("@ Force","1.3")
abc = GUINodesPickerDialog.new() ndlist = abc.show() for parentnodes in ndlist: for childnodes in ndlist: if childnodes != parentnodes: curCON = scene.message(childnodes.getName()+parentnodes.getName()) # curCON = scene.addConstraint("Fixed") # curCON.setParameter("Object A",childnodes.getName()) # curCON.setParameter("Object B",parentnodes.getName())
abc = GUINodesPickerDialog.new() ndlist = abc.show() for parentnodes in ndlist: for childnodes in ndlist: if childnodes != parentnodes: # curCON = scene.message(childnodes.getName()+" ; "+parentnodes.getName()) curccc = scene.addConstraint("Fixed") curccc = scene.setParameter("Object A",childnodes.getName()) curccc = scene..setParameter("Object B",parentnodes.getName())
Leave a Reply