[Ja...] Posted November 14, 2023 Share Posted November 14, 2023 I am self-taught on most of my Python knowledge. Through trial and error, and lots of Google I have been able to make things work. I'm to a point where I need to figure out loops. The copy, paste, and replace method is no longer feasible. Due to my limited understanding of Python, I am struggling to make the loops make sense. Essentially what I am trying to do is have a dialog box open, Imput the number of times I want a certain set of functions to loop, and then it to run. Also within the certain set of functions is an export. I am wanting it to loop as well and add a number each time it exports. (Example Export_1 = first time loop ran, Export_2 2nd time loop ran, and so on... I have attached a very basic .py file showing an example of what I'm trying to do. Any help would be appreciated. TEST.py Link to comment Share on other sites More sharing options...
[Mi...] Posted November 15, 2023 Share Posted November 15, 2023 Hi James, A maybe helping hint: Try to give your detailed Plan to any chat-KI (f.e. ChatGPT). Usually they spit out a well working code for simple tasks. Best Regards Michael Link to comment Share on other sites More sharing options...
[Na...] Posted November 15, 2023 Share Posted November 15, 2023 Hi, every tutorial for python will work, we have one free course in the training center. For dialogs and scripting in our software we have articles in the techguide and on github: ZEISS Quality Tech Guide GOM Inspect Add-On Development Documentation — Add-On Documentation documentation (zeissiqs.github.io) Nanno Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in