selection array again

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kimarotta's picture

maybe this...layer=

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

kimarotta.com.br
3d Artist  

kimarotta's picture

I don't understanding...

I don't understand...

kimarotta.com.br
3d Artist  

dussla's picture

thank you , one more question

that code is very good
sorry my poor englsih

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.