ScriptSpot

Forum topic · General Scripting

Hide vertex

By titane357 · 2018-08-23

Description

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 (2)

titane357 · 2018-08-23

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 · 2018-08-23

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