引数の組み合わせを検索:
|
t1 = bitmaptex filename:"t1.bmp" name:#Sphere_DiffuseMap
t2 = bitmaptex filename:"t2.bmp" name:#Teapot_DiffuseMap
t3 = bitmaptex filename:"t3.bmp" name:#Displace
t4 = bitmaptex filename:"t4.bmp" name:#VolSelect
t5 = bitmaptex filename:"t5.bmp" name:#HairDens
t6 = bitmaptex filename:"t6.bmp" name:#NoWhere
t7 = bitmaptex filename:"t7.bmp" name:#MEdit
t8 = bitmaptex filename:"t8.bmp" name:#NodeCustAttrib
t9 = bitmaptex filename:"t9.bmp" name:#ObjCustAttrib
s = sphere material:(standard showInViewport:true)
t = teapot material:(standard showInViewport:true) pos:[0,50,0] parent:s
s.material.diffusemap = t1
s.material.specularmap = t1
t.material.diffusemap = mix mask:t2
addModifier s (displace map:t3 strength:10)
addModifier t (volumeSelect texture:t4)
addModifier s (HairMod())
s.modifiers[1].maps[1] = t5
s.modifiers[1].mapEnables[1] = true
meditmaterials[1] = t7
g=geosphere()
testCADef = attributes testCA
(
parameters main
(
map type:#texturemap
)
)
CustAttributes.add g testCADef BaseObject:false
CustAttributes.add g testCADef BaseObject:true
g.testCA.map = t8
g.baseobject.testCA.map = t9
|
出力:
|
Sphere_DiffuseMap:Bitmap
Teapot_DiffuseMap:Bitmap
Displace:Bitmap
VolSelect:Bitmap
HairDens:Bitmap
NoWhere:Bitmap
medit:Bitmap
NodeCustAttrib:Bitmap
ObjCustAttrib:Bitmap
$Sphere:Sphere001 @ [0.000000,0.000000,0.000000]
$Teapot:Teapot001 @ [0.000000,50.000000,0.000000]
Sphere_DiffuseMap:Bitmap
Sphere_DiffuseMap:Bitmap
Mix:Mix
OK
OK
OK
HairDens:Bitmap
true
medit:Bitmap
$GeoSphere:GeoSphere001 @ [0.000000,0.000000,0.000000]
<AttributeDef:testCA>
true
true
NodeCustAttrib:Bitmap
ObjCustAttrib:Bitmap
|
テスト 1:
|
for b in getClassInstances bitmaptex do
format "Name : %, Texture name : %, Affected Nodes : %\n" b.name b.filename (refs.dependentNodes b)
|
テスト 1 出力
|
Name : medit, Texture --> Name : t7.bmp , Affected Nodes : #()
Name : Sphere_DiffuseMap, Texture --> Name : t1.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Teapot_DiffuseMap, Texture --> Name : t2.bmp, Affected Nodes : #($Editable_Mesh:Teapot001 @ [0.000000,50.000000,0.000000])
Name : VolSelect, Texture --> Name : t4.bmp, Affected Nodes : #($Editable_Mesh:Teapot001 @ [0.000000,50.000000,0.000000])
Name : Displace , Texture --> Name : t3.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : HairDens, Texture --> Name : t5.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : ObjCustAttrib, Texture name : t9.bmp, Affected Nodes : #()
Name : NodeCustAttrib, Texture name : t8.bmp, Affected Nodes : #($GeoSphere:GeoSphere001 @ [0.000000,0.000000,0.000000])
|
テスト 2
|
for b in getClassInstances bitmaptex target:rootnode do
format "Name : %, Texture name : %, Affected Nodes : %\n" b.name b.filename (refs.dependentNodes b)
|
テスト 2 出力
|
Name : VolSelect, Texture --> Name : t4.bmp, Affected Nodes : #($Editable_Mesh:Teapot001 @ [0.000000,50.000000,0.000000])
Name : Teapot_DiffuseMap, Texture --> Name : t2.bmp, Affected Nodes : #($Editable_Mesh:Teapot001 @ [0.000000,50.000000,0.000000])
Name : Displace, Texture --> Name : t3.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : HairDens, Texture --> Name : t5.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Sphere_DiffuseMap, Texture --> Name : t1.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : ObjCustAttrib, Texture name : t9.bmp, Affected Nodes : #()
Name : NodeCustAttrib, Texture name : t8.bmp, Affected Nodes : #($GeoSphere:GeoSphere001 @ [0.000000,0.000000,0.000000])
|
テスト 3
|
for b in getClassInstances bitmaptex target:s do
format "Name : %, Texture name : %, Affected Nodes : %\n" b.name b.filename (refs.dependentNodes b)
|
テスト 3 出力
|
Name : Displace, Texture --> Name : t3.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : HairDens, Texture --> Name : t5.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Sphere_DiffuseMap, Texture --> Name : t1.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
|
テスト 4
|
for b in getClassInstances bitmaptex target:s processChildren:true do
format "Name : %, Texture name : %, Affected Nodes : %\n" b.name b.filename (refs.dependentNodes b)
|
テスト 4 出力
|
Name : VolSelect, Texture --> Name : t4.bmp, Affected Nodes : #($Editable_Mesh:Teapot001 @ [0.000000,50.000000,0.000000])
Name : Teapot_DiffuseMap, Texture --> Name : t2.bmp, Affected Nodes : #($Editable_Mesh:Teapot001 @ [0.000000,50.000000,0.000000])
Name : Displace, Texture --> Name : t3.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : HairDens, Texture --> Name : t5.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Sphere_DiffuseMap, Texture --> Name : t1.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
|
テスト 5
|
for b in getClassInstances bitmaptex target:g do
format "Name : %, Texture name : %, Affected Nodes : %\n" b.name b.filename (refs.dependentNodes b)
|
テスト 5 出力
|
Name : ObjCustAttrib, Texture name : t9.bmp, Affected Nodes : #()
Name : NodeCustAttrib, Texture name : t8.bmp, Affected Nodes : #($GeoSphere:GeoSphere001 @ [0.000000,0.000000,0.000000])
|
テスト 6
|
for b in getClassInstances bitmaptex processAllAnimatables:true do
format "Name : %, Texture name : %, Affected Nodes : %\n" b.name b.filename (refs.dependentNodes b)
|
テスト 6 出力
|
Name : Sphere_DiffuseMap, Texture --> Name : t1.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Teapot_DiffuseMap, Texture --> Name : t2.bmp, Affected Nodes : #($Editable_Mesh:Teapot001 @ [0.000000,50.000000,0.000000])
Name : Displace, Texture --> Name : t3.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : VolSelect, Texture --> Name : t4.bmp, Affected Nodes : #($Editable_Mesh:Teapot001 @ [0.000000,50.000000,0.000000])
Name : HairDens, Texture --> Name : t5.bmp, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : NoWhere, Texture --> Name : t6.bmp, Affected Nodes : #()
Name : medit, Texture --> Name : t7.bmp, Affected Nodes : #()
Name : ObjCustAttrib, Texture name : t9.bmp, Affected Nodes : #()
Name : NodeCustAttrib, Texture name : t8.bmp, Affected Nodes : #($GeoSphere:GeoSphere001 @ [0.000000,0.000000,0.000000])
|
テスト 7
|
for b in getClassInstances bitmaptex asTrackViewPick:true do
format "Name : %, Texture name : %, Client: %, subAnim: %, Affected Nodes : %" b.anim.name b.anim.filename b.client b.subnum (refs.dependentNodes b.anim)
|
テスト 7 出力
|
Name : Sphere_DiffuseMap, Texture name : t1.bmp, Client: ReferenceTarget:ReferenceTarget, subAnim: 4 , Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Sphere_DiffuseMap, Texture name : t1.bmp, Client: ReferenceTarget:ReferenceTarget, subAnim: 6 , Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Teapot_DiffuseMap, Texture name : t2.bmp, Client: Mix:Mix, subAnim: 4, Affected Nodes : #($Editable_Mesh:Teapot001 @ [0.000000,50.000000,0.000000])
Name : medit, Texture name : t7.bmp, Client: #meditMaterials(), subAnim: 1, Affected Nodes : #()
Name : Displace, Texture name : t3.bmp, Client: Displace:Displace, subAnim: 3, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
|
テスト 8
|
for b in getClassInstances bitmaptex target:s asTrackViewPick:true do
format "Name : %, Texture name : %, Client: %, subAnim: %, Affected Nodes : %\n" b.anim.name b.anim.filename b.client b.subnum (refs.dependentNodes b.anim)
|
テスト 8 出力
|
Name : Displace, Texture name : t3.bmp, Client: Displace:Displace, subAnim: 3 , Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Sphere_DiffuseMap, Texture name : t1.bmp, Client: ReferenceTarget:ReferenceTarget, subAnim: 4 , Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Sphere_DiffuseMap, Texture name : t1.bmp, Client: ReferenceTarget:ReferenceTarget, subAnim: 6 , Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
|
テスト 9
|
for b in getClassInstances bitmaptex target:s processChildren:true asTrackViewPick:true do
format "Name : %, Texture name : %, Client: %, subAnim: %, Affected Nodes : %\n" b.anim.name b.anim.filename b.client b.subnum (refs.dependentNodes b.anim)
|
テスト 9 出力
|
Name : Displace, Texture name : t3.bmp, Client: Displace:Displace, subAnim: 3, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Sphere_DiffuseMap, Texture name : t1.bmp, Client: ReferenceTarget:ReferenceTarget, subAnim: 4, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Sphere_DiffuseMap, Texture name : t1.bmp, Client: ReferenceTarget:ReferenceTarget, subAnim: 6, Affected Nodes : #($Object:Sphere001 @ [0.000000,0.000000,0.000000])
Name : Teapot_DiffuseMap, Texture name : t2.bmp, Client: Mix:Mix, subAnim: 4, Affected Nodes : #($Editable_Mesh:Teapot001 @ [0.000000,50.000000,0.000000])
|