1
2
3
4
5
6
7
8
9
10
11
12
13
14
15from pyfbsdk import *
16import os
17import os.path
18
19
22
23gApp.FileNew()
24
25lFilePath = os.path.abspath( os.path.join( gSys.ApplicationPath, r"..\config\FBClusterTransactions.fbx"))
26print("Source File Path", lFilePath)
27
28gApp.FileOpen(lFilePath)
29
31
32if lSphere:
34 print(skinCluster.Name)
35
36 if skinCluster and skinCluster.LinkGetCount():
37 for n in range (skinCluster.LinkGetCount()):
38 skinCluster.ClusterBegin(n)
39 linkName = skinCluster.LinkGetName(n)
40 linkModel = skinCluster.LinkGetModel(n)
41 numVerts = skinCluster.VertexGetCount()
42 print(numVerts)
43 for v in range (numVerts):
44 vertIndex = skinCluster.VertexGetNumber(v)
45 vertWeight = skinCluster.VertexGetWeight(v)
46 print("For Vertex Index %d, the weight is %d" % (vertIndex, vertWeight))
47 skinCluster.ClusterEnd()
48
49
50
51
52
FBApplication is used mainly to manage files.
Definition: pyfbsdk_generated.h:801
Weighting interface for meshes.
Definition: pyfbsdk_generated.h:4325
Provides access to the underlying system, and the MotionBuilder scene.
Definition: pyfbsdk_generated.h:18771
FBModel FBFindModelByLabelName(str pModelLabelName)
Find a model in the scene by its label name.