From 5abab8d936c1907808710bb5e7b8d09814db2b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Thu, 7 Jan 2021 05:28:19 +0000 Subject: [PATCH] Update README.md --- UVtools.Scripts/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/UVtools.Scripts/README.md b/UVtools.Scripts/README.md index 0e4c9b1..00a0f32 100644 --- a/UVtools.Scripts/README.md +++ b/UVtools.Scripts/README.md @@ -89,7 +89,18 @@ Take **Erode-Bottom.ps1** as bootstrap and minimal script, read each line and st $morph.IterationsStart = $iterations - 1 $morph.LayerIndexStart = $slicerFile.BottomLayerCount $morph.LayerIndexEnd = $slicerFile.LayerCount - 1 - if(!$morph.Execute($slicerFile, $progress)){ return; } + if(!$morph.Execute($slicerFile, $progress)){ return } + + # Rotate layer 0, 45º + $rotate = New-Object UVtools.Core.Operations.OperationRotate + $rotate.AngleDegrees = 45; + if(!$rotate.Execute($slicerFile, $progress)){ return } + + # Rotate layer 1, 90º + $rotate.LayerIndexStart = 1 + $rotate.LayerIndexEnd = 1 + $rotate.AngleDegrees = 90 + if(!$rotate.Execute($slicerFile, $progress)){ return } ``` ## Contribute with your scripts