Hide vertex

Hi,
Can somebody can explain why this simple script don't work ?

for a in selection do
(
a.EditablePoly.SetSelection #Vertex #{}
a.EditablePoly.Hide #Vertex
)

and this one works ?

for a in selection do
(
a.EditablePoly.unhideAll #Vertex
)

Thanks

Comments

Comment viewing options

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

ooops. yes I admid it wasn't

ooops. yes I admid it wasn't very clear...

First "script" is to hide all vertex
Second is to unhide all vertex.

It is just a copy/past from Maxscript listener when clicking on "Hide unselected" and "Unhide all"

jahman's picture

.

Really?
You're setting empty vertex selection and then wonder why nothing is hidden? :)

Comment viewing options

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