Revision: 5521 http://sourceforge.net/p/smartbody/code/5521 Author: fengww Date: 2014-03-21 21:02:41 +0000 (Fri, 21 Mar 2014) Log Message: ----------- Add Python binding to access auto-rigging function through Python script. Example : --------------------------- from AutoRig import * assetManager = scene.getAssetManager() assetManager.loadAsset('e:/testExport/test.ply') # Here needs to change the input mesh file name
pawn = scene.createPawn("testAutoRig") pawn.setStringAttribute("mesh", "test.ply") pawn.setDoubleAttribute("rotY",-180.0) pawn.setDoubleAttribute("rotZ", -90.0) autoRigManager = SBAutoRigManager.getAutoRigManager() autoRigManager.buildAutoRiggingFromPawnMesh('testAutoRig',0, 'testAutoRig.sk', 'testAutoRig.dae') saveDeformableMesh('testAutoRig.dae', 'testAutoRig.sk', "e:/testExport/") -------------------------- Modified Paths: -------------- trunk/core/smartbody/SmartBody/src/sbm/ParserOpenCOLLADA.h trunk/core/smartbody/sbgui/src/autorig/SBAutoRigManager.cpp trunk/core/smartbody/sbgui/src/autorig/SBAutoRigManager.h trunk/core/smartbody/sbgui/src/jointmapviewer/RetargetStepWindow.cpp trunk/core/smartbody/sbgui/src/sbm_main.cpp trunk/core/smartbody/sbgui/visualc9/sbgui.vcxproj trunk/core/smartbody/sbgui/visualc9/sbgui.vcxproj.filters Added Paths: ----------- trunk/core/smartbody/sbgui/src/pythonbind/ trunk/core/smartbody/sbgui/src/pythonbind/SBPythonAutoRig.h trunk/core/smartbody/sbgui/src/pythonbind/SBPythonAutorig.cpp This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Smartbody-svn mailing list Smartbody-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/smartbody-svn