ScriptSpot

Forum topic · Scripts Wanted

selection array again

By dussla · 2012-08-28

Description

sorry my many ask always ~

i am seeking code

1. in ceratin layer , there is obect appyied uvwmap
2. select that object
i would like to make array variable with that object only

can you undestand ?

always happy friend ~

Comments (3)

maybe this...layer=

kimarotta · 2012-08-28

maybe this...


layer= layermanager.getlayer 1 --- define layer
layer.nodes &thenodes --- collect nodes in layer

objArr = #() 
--- collect nodes in layer with Uvwmap modifier
for o in thenodes where o.modifiers.count != 0 do
	(
	for m in o.modifiers where classof m == UVWmap do append objArr o
	)

objArr --- print array
#($Editable_Mesh:Sphere001 @ [-0.010178,-15.048767,0.000000]) --- array with node uvwmap modifier

I don't understanding...

kimarotta · 2012-08-28

I don't understand...

thank you , one more question

dussla · 2012-08-28

that code is very good
sorry my poor englsih