Delete Faces Modifier

Started by wallworm, June 15, 2016, 12:59:27 PM

Previous topic - Next topic

wallworm

I have loaded an update to Delete Faces that removes dead structs now. This update is included in the plugin for 3ds Max 2018+.

AeRo

Thanks! Works fine.

But another bug: various versions are not compatible with himself. 

If I try to open one old file with newer version - all edit_poly operation after Delete_Faces mod are broken.  I think newer modifier give back another face order.

wallworm

Unfortunately, there is no way to have the clean version (devoid of dead verts/faces) and keep face order. The previous implementation deleted the faces from the mesh that you see, but they still existed in the data--and because they still existed, face order was preserved. In the update, the dead faces get cleared--meaning that face IDs that are deleted get filled with previously higher face IDs. There is no way to avoid this.

A workaround is to use the older implementation and clean at the end. But the current implementation is the correct way it should be done so I will keep the current logic in the modifier. It's unfortunate this affects previous usage that has topology-dependent modifiers above, but I didn't notice the issue until you posted about the issue. My habit is to avoid using topology dependent modifiers whenever possible--and the situations I built this for didn't highlight the issue in my own usage.

AeRo

Hi again!

Max 2022 Version (and maybe 2023) - Again problem from version 1.
After stack collapse "delete poly rollout" stays under edit poly rollouts.

Can you fix it fast? - work must go to the Cliient.

Thanks!

wallworm

You should be able to select the object(s) and paste this into MAXScript listener then hit enter:

for obj in selection do (while (custAttributes.count obj > 0) do (custAttributes.delete obj 1))

Note it will delete ALL custom attributes on the node... so if you have others that you want to keep, you'll need more selective code.

AeRo

Thanks! Script works fine!

When to expect fixed Modifier?

wallworm

The issue is that the modifier UI is mostly a custom attribute instead of native C++ because I am much better with MAXScript than C++. The default behavior of custom attributes is to propagate into collapsed geometry. I may be able to detect this in an event listener; I will put it onto my backlog to address. No ETA.

AeRo

Version for Max 2023 passible ?

AeRo

Since this plugin has become free - maybe make it as a startup ms script - that way the need for new versions and collapse problem will disappear?

wallworm

Quote from: AeRo on August 06, 2022, 05:34:53 AM
Version for Max 2023 passible ?

Sorry I did not update the independent downloads for 2023. The 2023 version has been included in the WW Pro Pack Installer for months, but I forgot to update the zips for each one for those installing independently.

Quote from: AeRo on August 11, 2022, 04:57:06 AM
Since this plugin has become free - maybe make it as a startup ms script - that way the need for new versions and collapse problem will disappear?

The plugin has a startup script for the custom attribute needed to interface with some of the plugin. But it won't be practical to change to MAXscript instead of the C++ version. There is a button in the command panel that will delete the rollout after you collapse it down. Clicking that should remove the rollout.