Message 1 of 4
How to Pick Arbitrary Faces in Viewport?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am building a utility to change material IDs on objects. Here is specifically what I am trying to accomplish:
A user chooses a material and starts picking faces... those faces automatically get that material. By picking faces... I mean any arbitrary face in the viewport on any arbitrary object.
Yes, you could always go to each object, go to face sub-object mode, select the face and then scroll down to the material IDs... but that's what I'm trying to skip! I want a simple utility that works easily for this one task.
So my dilemma is that I don't know how to 1) Initiate a listener for a picked face and 2) how I would use it.
I've been reviewing some of the docs on accessing active viewport info... but my brain isn't soaking it in. I also looked in the Scripted Mouse Tools and PolyOp sections... nothing jumps out at me.
One consideration is that the object type should be arbitrary as the objects could be Primitives, Editable Poly, Editable Mesh, etc.
What I want is a magical:
on face_selected face do (
--do whatever to face
)
Does it already exist? If so... please point me in the right direction. If not, why NOT!? (And in that case, any ideas... ?)
Shawn Olson
Developer of Wall Worm
3ds Max plugins and Scripts
3ds Max 4/Gmax - 3ds Max 2020
Mudbox 2009-2019
Windows 10 x64
i7 8700K
64GB RAM
Geforce 1080ti
A user chooses a material and starts picking faces... those faces automatically get that material. By picking faces... I mean any arbitrary face in the viewport on any arbitrary object.
Yes, you could always go to each object, go to face sub-object mode, select the face and then scroll down to the material IDs... but that's what I'm trying to skip! I want a simple utility that works easily for this one task.
So my dilemma is that I don't know how to 1) Initiate a listener for a picked face and 2) how I would use it.
I've been reviewing some of the docs on accessing active viewport info... but my brain isn't soaking it in. I also looked in the Scripted Mouse Tools and PolyOp sections... nothing jumps out at me.
One consideration is that the object type should be arbitrary as the objects could be Primitives, Editable Poly, Editable Mesh, etc.
What I want is a magical:
on face_selected face do (
--do whatever to face
)
Does it already exist? If so... please point me in the right direction. If not, why NOT!? (And in that case, any ideas... ?)
Shawn Olson
Developer of Wall Worm
3ds Max plugins and Scripts
3ds Max 4/Gmax - 3ds Max 2020
Mudbox 2009-2019
Windows 10 x64
i7 8700K
64GB RAM
Geforce 1080ti