현재 노드의 계층구조를 나타내는 string
을 돌려줍니다. detail = true
를 인자로 준다면 노드들의 properties 에 대한 정보 또한 표시합니다.
node.hierarchy()
node.hierarchy(detail)
detail
노드들의 FBXNode.properties 에 대한 정보를 담을지 여부를 나타내는 boolean
. true
라면 노드들의 속성들 또한 표시합니다.
노드의 계층구조를 나타내는 string
. 예를 들어 Geometry 노드에 대해서 geometry.hierarchy()
을 호출했다고 하면, 문자열은 다음 스타일의 내용을 담고 있습니다:
"Geometry" (636)
|
|____"Vertices" (637)
|
|____"PolygonVertexIndex" (638)
|
|____"Edges" (639)
|
|____"GeometryVersion" (640)
|
|____"LayerElementNormal" (641)
| |
| |____"Version" (642)
| |
| |____"Name" (643)
| |
| |____"MappingInformationType" (644)
| |
| |____"ReferenceInformationType" (645)
| |
| |____"Normals" (646)
|
|____"LayerElementUV" (647)
| |
| |____"Version" (648)
| |
| |____"Name" (649)
| |
| |____"MappingInformationType" (650)
| |
| |____"ReferenceInformationType" (651)
| |
| |____"UV" (652)
| |
| |____"UVIndex" (653)
|
|____"LayerElementMaterial" (654)
| |
| |____"Version" (655)
| |
| |____"Name" (656)
| |
| |____"MappingInformationType" (657)
| |
| |____"ReferenceInformationType" (658)
| |
| |____"Materials" (659)
|
|____"Layer" (660)
| |
| |____"Version" (661)
| |
| |____"LayerElement" (662)
| | |
| | |____"Type" (663)
| | |
| | |____"TypedIndex" (664)
| |
| |____"LayerElement" (665)
| | |
| | |____"Type" (666)
| | |
| | |____"TypedIndex" (667)
| |
| |____"LayerElement" (668)
| | |
| | |____"Type" (669)
| | |
| | |____"TypedIndex" (670)
노드 이름의 옆에 있는 번호는 FBXNode.beginIndex
값을 의미하며, FBXFile.nodes
에서의 인덱스(index)를 의미합니다. 예를 들어, 위 예시에서 "TypedIndex" (670)
는 fbxfile.nodes[670]
에 TypedIndex 노드가 저장되어 있다는 의미입니다.
노드들의 속성(properties) 까지 표시하고 싶다면 geometry.hierarchy(true)
처럼 호출하면 되며, 다음과 같은 스타일의 내용을 담고 있습니다:
"Geometry" (636)
| + L:int64 = 2959741026912
| + S:string = "\\x00\\x01Geometry"
| + S:string = "Mesh"
|
|____"Vertices" (637)
| + d:double[32484]
|
|
|____"PolygonVertexIndex" (638)
| + i:int32[43520]
|
|
|____"Edges" (639)
| + i:int32[21829]
|
|
|____"GeometryVersion" (640)
| + I:int32 = 124
|
|
|____"LayerElementNormal" (641)
| + I:int32 = 0
|
| |
| |____"Version" (642)
| | + I:int32 = 101
| |
| |
| |____"Name" (643)
| | + S:string = ""
| |
| |
| |____"MappingInformationType" (644)
| | + S:string = "ByVertice"
| |
| |
| |____"ReferenceInformationType" (645)
| | + S:string = "Direct"
| |
| |
| |____"Normals" (646)
| | + d:double[32484]
| |
|
|____"LayerElementUV" (647)
| + I:int32 = 0
|
| |
| |____"Version" (648)
| | + I:int32 = 101
| |
| |
| |____"Name" (649)
| | + S:string = "map1"
| |
| |
| |____"MappingInformationType" (650)
| | + S:string = "ByPolygonVertex"
| |
| |
| |____"ReferenceInformationType" (651)
| | + S:string = "IndexToDirect"
| |
| |
| |____"UV" (652)
| | + d:double[24432]
| |
| |
| |____"UVIndex" (653)
| | + i:int32[43520]
| |
|
|____"LayerElementMaterial" (654)
| + I:int32 = 0
|
| |
| |____"Version" (655)
| | + I:int32 = 101
| |
| |
| |____"Name" (656)
| | + S:string = ""
| |
| |
| |____"MappingInformationType" (657)
| | + S:string = "AllSame"
| |
| |
| |____"ReferenceInformationType" (658)
| | + S:string = "IndexToDirect"
| |
| |
| |____"Materials" (659)
| | + i:int32[1]
| |
|
|____"Layer" (660)
| + I:int32 = 0
|
| |
| |____"Version" (661)
| | + I:int32 = 100
| |
| |
| |____"LayerElement" (662)
| | |
| | |____"Type" (663)
| | | + S:string = "LayerElementNormal"
| | |
| | |
| | |____"TypedIndex" (664)
| | | + I:int32 = 0
| | |
| |
| |____"LayerElement" (665)
| | |
| | |____"Type" (666)
| | | + S:string = "LayerElementMaterial"
| | |
| | |
| | |____"TypedIndex" (667)
| | | + I:int32 = 0
| | |
| |
| |____"LayerElement" (668)
| | |
| | |____"Type" (669)
| | | + S:string = "LayerElementUV"
| | |
| | |
| | |____"TypedIndex" (670)
| | | + I:int32 = 0
| | |
노드의 속성들에 대해서 FBXProperty 를 읽어보시길 바랍니다.