Author Topic: Can remove the appended modifiers in Python scripts ?  (Read 207 times)

permissionX

  • Newbie
  • *
  • Posts: 4
Can remove the appended modifiers in Python scripts ?
« on: May 18, 2019, 04:09:43 PM »
If there is any way to remove the appended-to-node modifiers in Python scripts?
It will be very useful when it costs a long time to import a huge dump file.

Constanze Kalcher

  • Administrator
  • Sr. Member
  • *****
  • Posts: 301
Re: Can remove the appended modifiers in Python scripts ?
« Reply #1 on: May 20, 2019, 11:24:13 AM »
Hi,
yes, you can disable a modifier by setting its attribute "enabled" to False, see documentation

http://ovito.org/manual_testing/python/modules/ovito_pipeline.html#ovito.pipeline.Modifier


If you want to delete it altogether, you can use the standard python del operation.

-Constanze
« Last Edit: May 20, 2019, 12:16:40 PM by Constanze Kalcher »

permissionX

  • Newbie
  • *
  • Posts: 4
Re: Can remove the appended modifiers in Python scripts ?
« Reply #2 on: May 26, 2019, 10:31:34 PM »
That's what I want, thanks a lot! ;)