Notifications
Clear all

[Closed] how to force show in wireframe mode

Hi all,

As you know, by default, assets are shown with material. and you can press F3 to make it show in wireframe. Can I set one of my asset to show in wireframe mode using some script or SDK?

Thanks for the help!

8 Replies

How about a separate layer that overrides the current shading mode and forces it to wireframe?

– MartinB

You can register a redrawViewsCallback that sets viewport.SetRenderLevel #wireframe, or another type of callback (such as the general event #viewportChange callback, haven’t tried that though.

On a similar note I was wondering if there was an option for “Show selected with Edge faces”, it seems to be missing from maxscript no?

1 Reply
(@robgalanakis)
Joined: 11 months ago

Posts: 0

viewport.SetShowEdgeFaces <boolean> ?

BTW this is all in Accessing Active Viewport Info, Type, and Transforms area of Help.

Close, but that’s controlling the whole viewport. I’m looking for something that replicates views/configure/showselected with edge faces.

Only the object selected is displated with edge faces.

1 Reply
(@robgalanakis)
Joined: 11 months ago

Posts: 0

Not sure exactly what you mean.

I dont know if you can access it through maxscript, but I have asigned a hot key for it…
you can find it in the action table under the name of ‘Display Selected with Edged Faces’
Cheers.

martinB’s solution will be the only way to handle it. There is no way to override an objects display mode, but you can override how a layer and its objects display in the viewport. The only other choice would be replace the objects material with a Standard Map that is set to wire mode. This approach would give you some more options for display of the object.

-Eric