pixel9
08-15-2008, 09:41 AM
Hi there!
Maybe someone around knows, what this type of error means, after executing this script
disableSceneRedraw()
--> initialize the array, the objects without texture are moved into
mymtlobjArray = #()
--select $*
--> filter all objects that have no material assigned
mymtlobjArray = for obj in geometry where obj.material == undefined collect obj
--> filter all objects with an "Architectural" material applied
appendmyobj = for obj in geometry where ClassOf obj.material == Architectural collect obj
--> extend the object array by the objects with the arch-mat
append mymtlobjArray appendmyobj
enableSceneRedraw()
--> select all objects without a material, based on the content of the filter array
select mymtlobjArray
OK
#()
#($Box:Box02 @ [-62.240959,20.287041,0.000000], $Box:Box04 @ [-43.562508,64.090004,0.000000], $Box:Box06 @ [-50.397369,-4.926552,0.000000], $Box:Box08 @ [-77.898979,-9.254555,0.000000], $Box:Box10 @ [-21.882240,27.967003,0.000000], $Box:Box12 @ [-8.495033,-19.857262,0.000000], $Box:Box21 @ [77.100807,-36.565620,0.000000], $Box:Box23 @ [77.143135,25.526955,0.000000], $Box:Box24 @ [67.666718,47.461906,0.000000])
#($Editable_Mesh:Layer:A_F_Fassade_1 @ [452.737579,-194.608612,6.574999])
#($Box:Box02 @ [-62.240959,20.287041,0.000000], $Box:Box04 @ [-43.562508,64.090004,0.000000], $Box:Box06 @ [-50.397369,-4.926552,0.000000], $Box:Box08 @ [-77.898979,-9.254555,0.000000], $Box:Box10 @ [-21.882240,27.967003,0.000000], $Box:Box12 @ [-8.495033,-19.857262,0.000000], $Box:Box21 @ [77.100807,-36.565620,0.000000], $Box:Box23 @ [77.143135,25.526955,0.000000], $Box:Box24 @ [67.666718,47.461906,0.000000], #($Editable_Mesh:Layer:A_F_Fassade_1 @ [452.737579,-194.608612,6.574999]))
OK
-- Runtime error: operation requires a collection of nodes, got: #($Editable_Mesh:Layer:A_F_Fassade_1 @ [452.737579,-194.608612,6.574999])
OK
Well, the array appendmyobj is a collection, or not`? :shrug:
Maybe someone around knows, what this type of error means, after executing this script
disableSceneRedraw()
--> initialize the array, the objects without texture are moved into
mymtlobjArray = #()
--select $*
--> filter all objects that have no material assigned
mymtlobjArray = for obj in geometry where obj.material == undefined collect obj
--> filter all objects with an "Architectural" material applied
appendmyobj = for obj in geometry where ClassOf obj.material == Architectural collect obj
--> extend the object array by the objects with the arch-mat
append mymtlobjArray appendmyobj
enableSceneRedraw()
--> select all objects without a material, based on the content of the filter array
select mymtlobjArray
OK
#()
#($Box:Box02 @ [-62.240959,20.287041,0.000000], $Box:Box04 @ [-43.562508,64.090004,0.000000], $Box:Box06 @ [-50.397369,-4.926552,0.000000], $Box:Box08 @ [-77.898979,-9.254555,0.000000], $Box:Box10 @ [-21.882240,27.967003,0.000000], $Box:Box12 @ [-8.495033,-19.857262,0.000000], $Box:Box21 @ [77.100807,-36.565620,0.000000], $Box:Box23 @ [77.143135,25.526955,0.000000], $Box:Box24 @ [67.666718,47.461906,0.000000])
#($Editable_Mesh:Layer:A_F_Fassade_1 @ [452.737579,-194.608612,6.574999])
#($Box:Box02 @ [-62.240959,20.287041,0.000000], $Box:Box04 @ [-43.562508,64.090004,0.000000], $Box:Box06 @ [-50.397369,-4.926552,0.000000], $Box:Box08 @ [-77.898979,-9.254555,0.000000], $Box:Box10 @ [-21.882240,27.967003,0.000000], $Box:Box12 @ [-8.495033,-19.857262,0.000000], $Box:Box21 @ [77.100807,-36.565620,0.000000], $Box:Box23 @ [77.143135,25.526955,0.000000], $Box:Box24 @ [67.666718,47.461906,0.000000], #($Editable_Mesh:Layer:A_F_Fassade_1 @ [452.737579,-194.608612,6.574999]))
OK
-- Runtime error: operation requires a collection of nodes, got: #($Editable_Mesh:Layer:A_F_Fassade_1 @ [452.737579,-194.608612,6.574999])
OK
Well, the array appendmyobj is a collection, or not`? :shrug:
