Script for changing the layer exposure time of the internal layers of a model ? #942
Replies: 2 comments 5 replies
-
You can start here: https://github.com/sn4k3/UVtools/tree/master/Scripts/UVtools.ScriptSample |
Beta Was this translation helpful? Give feedback.
-
So, I tried the script samples available in documentation and am able to manipulate the variables I want, let's say the layer exposure time. However, is there a way to bypass using the UVTools GUI and directly execute the code from the VS Code terminal. For example, let's say I have the output of a sliced file in .ctb format that has 10 layers of 1s exposure time each. My goal is to change the exposure time to 5s each. One way is to use a script that changes that Layer.ExposureTime and import that C# script into UVTools using Tools->Scripting->Load Script. However, if I don't want to load the C# script using UVTools but input it directly can I do that? What I mean is can I input my .ctb file into my C# script somehow, then change the layer exposure time and finally save that output. So that now if I input this .ctb file into UVTools it would show me the layer exposure time as 5s. Thank you for all your help. |
Beta Was this translation helpful? Give feedback.
-
Sorry I don't have a coding background and am completely new to this. What is the procedure to accomplish something like this? Do you write the code in let's say VS code using Python and import it into UVTools? How does the scripting work exactly?
I specifically want a script that can help me change the layer exposure time of the 3D model to a lower one. How do I go about accomplishing that?
Beta Was this translation helpful? Give feedback.
All reactions