prerogative

Author Topic: Delete Faces Modifier  (Read 19231 times)

wallworm

  • Administrator
  • Hero Member
  • *****
  • Posts: 3704
  • Karma: 102
  • Behind me?
    • View Profile
Re: Delete Faces Modifier
« Reply #30 on: April 06, 2020, 10:16:24 pm »
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

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
  • Acolyte
    • View Profile
Re: Delete Faces Modifier
« Reply #31 on: May 01, 2020, 06:44:41 am »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 3704
  • Karma: 102
  • Behind me?
    • View Profile
Re: Delete Faces Modifier
« Reply #32 on: May 01, 2020, 08:35:19 am »
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

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
  • Acolyte
    • View Profile
Re: Delete Faces Modifier
« Reply #33 on: June 25, 2022, 11:35:32 am »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 3704
  • Karma: 102
  • Behind me?
    • View Profile
Re: Delete Faces Modifier
« Reply #34 on: June 25, 2022, 12:27:25 pm »
You should be able to select the object(s) and paste this into MAXScript listener then hit enter:

Code: [Select]
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

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
  • Acolyte
    • View Profile
Re: Delete Faces Modifier
« Reply #35 on: June 25, 2022, 12:40:01 pm »
Thanks! Script works fine!

When to expect fixed Modifier?