Select face using script

I have a bounding box and I would like to select the faces of the box, for instance, the face of the box with node x-position equal to 0.0.

I'm not seeing any command in the Python scripting API that selects faces.

Any ideas how to get the faces?

Thanks,
Frank

Comments

  • It doesn't currently have any functions to select things. Do you want to select them then exit the script so that selection is available in the GUI, or do some script things on the selection? If the latter, then you can keep a list of faces in the script since its functions don't use the current selection anyway.

    You could make a named selection with mw.new_face_selection(name=None) and populate it with mw.add_to_named_selection(name, item) .
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!