[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3750] branches/protopipe/ppapp.py: Added ppapp, main application point and data structures

Aurel W aurel.w at gmail.com
Sun Sep 16 20:45:11 CEST 2012


Revision: 3750
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3750
Author:   aurel
Date:     2012-09-16 18:45:10 +0000 (Sun, 16 Sep 2012)
Log Message:
-----------
Added ppapp, main application point and data structures

Added Paths:
-----------
    branches/protopipe/ppapp.py

Added: branches/protopipe/ppapp.py
===================================================================
--- branches/protopipe/ppapp.py	                        (rev 0)
+++ branches/protopipe/ppapp.py	2012-09-16 18:45:10 UTC (rev 3750)
@@ -0,0 +1,38 @@
+#
+# Copyright 2012, Aurel Wildfellner.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+
+
+from protopipe.jointproto import JointProto
+from protopipe.jointproto import JointDescriptor
+from protopipe.jointproto import ProtoLibrary
+from protopipe.jointproto import JointFactory
+
+
+#### globals #####
+jointFactory = None
+
+def loadLibs():
+    global jointFactory
+    jointLib = ProtoLibrary()
+    jointLib.loadFromBlendFile("/home/aurel/pvclib.blend")
+
+    jointFactory = JointFactory()
+    jointFactory.addJointProtoProvider(jointLib)
+
+
+



More information about the Bf-extensions-cvs mailing list