OVITO Forum

OVITO => Support Forum => Topic started by: permissionX on May 18, 2019, 04:09:43 PM

Title: Can remove the appended modifiers in Python scripts ?
Post by: permissionX 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.
Title: Re: Can remove the appended modifiers in Python scripts ?
Post by: Constanze Kalcher 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 (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
Title: Re: Can remove the appended modifiers in Python scripts ?
Post by: permissionX on May 26, 2019, 10:31:34 PM
That's what I want, thanks a lot! ;)