Select Face Array

Hi,

I need a help in faces...
I'm trying to collect some faces, some faces have an array but I can not load the array in setSelection ...

Thanks in advanced

	prov = $.selectedFaces as integer
-- Unable to convert: #faces(181, 234, 347 : $Editable_Poly:Plane003 @ [32.705963,272.583252,0.000000]) to type: Integer
 
prov
#faces(181, 234, 347 : $Editable_Poly:Plane003 @ [32.705963,272.583252,0.000000])
 
$.EditablePoly.SetSelection #Face #{prov}
-- Unable to convert: #faces(181, 234, 347 : $Editable_Poly:Plane003 @ [32.705963,272.583252,0.000000]) to type: Integer

Comments

Comment viewing options

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

First if you use array and

First if you use array and you want to know the count then use:

arr = #(1,5,8,10)
arr.count
-->4


But for bitarray you need to use:

bitarr = #{1..5,10,16}
bitarr.numberset
-->7

bga

kimarotta's picture

very good and very thanks

very good and very thanks Barigazy...

and the question of vol. select has any idea?

kimarotta.com.br
3d Artist  

barigazy's picture

Next time say if you use

Next time say if you use modifiers or not :)
For the editpoly mod you can use various methods
Read mxs help, topic Edit_Poly : Modifier

EditPolyMod.GetSelection $.modifiers[#Edit_Poly] #Face
--or
EditPolyMod.GetSelection $.Edit_Poly #Face
--or
$.modifiers[#Edit_Poly].EditPolyMod.GetSelection #Face
--or
$.Edit_Poly.EditPolyMod.GetSelection #Face
--or
$.modifiers[#Edit_Poly].GetSelection #Face
--or
$.Edit_Poly.GetSelection #Face

bga

kimarotta's picture

Sorry... and thanks again.

Sorry... and thanks again.

kimarotta.com.br
3d Artist  

barigazy's picture

Are you preparing some new

Are you preparing some new script or just playing with modifiers?
Share at least one screenshoot :)

bga

kimarotta's picture

...

Hey... I am trying to solve a problem ... I'll try to explain ... I have a plane with a modifier "Vol.Select", and would like to collect the faces that "Vol.Select" select ... I select only the latest faces and not all. would like to create an ID for each selection group that creates the Box Plane ... you get the idea? I'm sending the file to the test ...
was trying something like...

for f in 0 to 50 do
(
sliderTime = f
prov1 = #()
tst = $.VolselectMod.GetSelection #Face ---- This line is not working ... not found the correct code 
	append prov1 tst
)
 
prov1

p.s. I'm a begginer... help are welcome

AttachmentSize
tst_vol_select.max 308 KB

kimarotta.com.br
3d Artist  

kimarotta's picture

.

lol.

I will try ...

very thanks

kimarotta.com.br
3d Artist  

barigazy's picture

PolyOp Method

This is the same [PolyOp Method]

prov = polyop.getFaceSelection $
polyop.setFaceSelection $ #{}
polyop.setFaceSelection $ prov
max views redraw

bga

barigazy's picture

Swordslayer is faster

Swordslayer is faster :)
Cheers!

bga

barigazy's picture

You can't convert as integer

You can't convert as integer but you can convert as bitarray

prov = $.selectedFaces as bitarray
$.SetSelection #Face #{}
$.SetSelection #Face prov

bga

Comment viewing options

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