From c824d7264707e57c1531ddab5686317e97ffd31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Sat, 21 May 2022 18:32:41 +0100 Subject: [PATCH] Update ScriptDebandingZSample.cs Disable it --- UVtools.ScriptSample/ScriptDebandingZSample.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/UVtools.ScriptSample/ScriptDebandingZSample.cs b/UVtools.ScriptSample/ScriptDebandingZSample.cs index 43479e5..6b89349 100644 --- a/UVtools.ScriptSample/ScriptDebandingZSample.cs +++ b/UVtools.ScriptSample/ScriptDebandingZSample.cs @@ -7,7 +7,6 @@ */ using System; -using UVtools.Core; using UVtools.Core.Extensions; using UVtools.Core.Scripting; @@ -92,9 +91,11 @@ public class ScriptDebandingZSample : ScriptGlobals { Script.Name = "Debanding Z with wait time"; Script.Description = "Applies wait time at certain layers to help layer adhesion and debanding the Z axis.\n" + - "Based on the guide: https://bit.ly/3nkXAOa\n"; + "Based on the guide: https://bit.ly/3nkXAOa\n\n" + + "NOTE: Do not use this script! it's outdated and replaced by inbuilt UVtools suggestion (Wait time before cure).\n" + + "Check the Shield icon/tab and look for 'Wait time before cure' suggestion, you can also configure it and offers more possibilities."; Script.Author = "Tiago Conceição"; - Script.Version = new Version(0, 2); + Script.Version = new Version(0, 3); if (SlicerFile.SupportsGCode) CreateEmptyLayerInput.Value = false; Script.UserInputs.Add(CreateEmptyLayerInput); Script.UserInputs.Add(BottomSafeDebandingHeightInput); @@ -119,6 +120,9 @@ public class ScriptDebandingZSample : ScriptGlobals /// True if executes successfully to the end, otherwise false. public bool ScriptExecute() { + throw new NotSupportedException( + "Do not use this script! it's outdated and replaced by inbuilt UVtools suggestion (Wait time before cure).\n" + + "Check the Shield icon/tab and look for 'Wait time before cure' suggestion, you can also configure it and offers more possibilities."); Progress.Reset("Changing layers", Operation.LayerRangeCount); // Sets the progress name and number of items to process if (SlicerFile.CanUseAnyWaitTime)