Replies: 2 comments 1 reply
-
I highly recommend C# because it's UVtools native language, can run inside it, it's faster, easy language and you can copy code from it own. After some tries you will get used to it. I saw non programmer people able to do thier own little script. Python-wise i can add more samples (just tell me something you would like as sample), but keep in mind it will always return objects and you will have to call it functions exactly like you would do with C#, i'm not a Python programer so i don't know what you can do with numpy. I added Python for experienced programers but those need to consult the source code and call the functions, the most annoying part as you won't have any code completion and analiser won't brother either with possible errors or typos.
You must install from latest dev version, follow this: https://github.com/sn4k3/UVtools/tree/master/Scripts/UVtools.Python it should work if you produce that steps |
Beta Was this translation helpful? Give feedback.
-
The plan is to create some complex pixel movements, and I would greatly benefit from being able to program them in Python. If that is not possible, maybe you are right and I should start looking at C#. I would probably just create an interface to python though. I don't want to relearn how to solve a diffusion equation in c# :D if i could make a wish, most of it would revolve around my plan, of course. However, to be further considered as general examples it would be helpful to:
btw. do you know if there is a limit to how fast you can change the image? Would it be possible to basically play animations on each layer? |
Beta Was this translation helpful? Give feedback.
-
Hey everyone,
for a research idea I would like to split some layers into multiple similar to this idea https://blog.honzamrazek.cz/2022/06/preventing-warping-of-resin-printed-pieces-alternative-way-of-fighting-resin-shrinkage. Now I am not super good with C# and was delighted to see the option of using python. Right now there is only the "print_layers.py"-script. I'd love to see some more elaborate examples. Especially transforming the layers into a (x,y,z) numpy array, performing some work on it and putting it back into the proper file format.
I would like to try some different patterns to reduce warping. Maybe with a lot more sub-layer images. Like "white noise".
Oh, right now I am not even getting the print_layers.py to work. "No module named 'pythonnet'" even if it is installed with pip and/or conda. Weird...
Beta Was this translation helpful? Give feedback.
All reactions