Search found 153 matches
- Mon Apr 29, 2024 7:24 pm
- Forum: Bug Reports
- Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
- Replies: 12
- Views: 1877
Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
I'm a bit scared that you were digging into the UI via LiveStacking.GetControl() - top marks for finding that you could do that, but it definitely wasn't supposed to be accessible to scripting :( I'm almost afraid to ask what things you were adjusting via that approach! cheers, Robin I haven't been...
- Sat Apr 27, 2024 6:25 pm
- Forum: Bug Reports
- Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
- Replies: 12
- Views: 1877
Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
I have been testing version 4.1.12100.0 and trying to figure out how to access any of the live stacking controls. All of the automations scripts I have written rely on access to these controls. I have been trying to get in through code like: lsc = SharpCap.LiveStacking.GetControl() ctlcol = lsc.Cont...
- Thu Apr 25, 2024 4:36 am
- Forum: How do I?
- Topic: Passing parameters to Python scripts from sequences
- Replies: 5
- Views: 239
Re: Passing parameters to Python scripts from sequences
I had looked for the notes control, but didn't see it in the drop down so had abandoned the idea and stuck with the target name field! The idea for embedding a line of Python code in the sequence would be very useful. I have a bunch of single line python script files that look like this: MDLAutoDark...
- Wed Apr 24, 2024 3:38 am
- Forum: How do I?
- Topic: Passing parameters to Python scripts from sequences
- Replies: 5
- Views: 239
Re: Passing parameters to Python scripts from sequences
I see, of course. The Python environment needs to be kept running to maintain its state and all the objects created by startup scripts. As an example, I have multiple script snippets to set certain interface elements in live-stack to different values, depending on what I want to do. If there was som...
- Mon Apr 22, 2024 7:20 pm
- Forum: How do I?
- Topic: Passing parameters to Python scripts from sequences
- Replies: 5
- Views: 239
Passing parameters to Python scripts from sequences
There doesn't seem to be anyway to pass a command line parameter to a python script that is called from a SharpCap sequence. I even tried quoting the path to the script in the sequence and that added a parameter, but SC just treats the whole thing including quotes as the path, so it fails. The only ...
- Mon Apr 22, 2024 6:20 pm
- Forum: Bug Reports
- Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
- Replies: 12
- Views: 1877
Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
Thanks! I have been scouring through my scripts, and found a few more missing objects I missed in my last post: SharpCap.LiveStacking.SaveRawFrames = SharpCap.LiveStacking.SaveRawFrames.WhileNotPausedOrDithering SharpCap.LiveStacking.SaveRawFrames = 0 and SharpCap.LiveStacking.GetFilenameForSaveWith...
- Mon Apr 22, 2024 4:19 am
- Forum: Bug Reports
- Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
- Replies: 12
- Views: 1877
Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
It appears that the assignment: SharpCap.Focusers.SelectedFocuser.Position = new_position works as a replacement for Move( pos ). I believe I may have tried to assign to the focuser field .value, which maybe doesn't always work. Luckily, it turns out I had the use of Move localized to one function s...
- Fri Apr 19, 2024 9:28 pm
- Forum: Bug Reports
- Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
- Replies: 12
- Views: 1877
Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
Thanks Robin! In some cases of accessing controls, the value works fine, but Bin is some sort of strange object that requires casting to make it useable. I was wondering whether there might be cameras with asymmetric binning that would make a single integer Bin value problematic, but I couldn't imag...
- Thu Apr 18, 2024 5:10 pm
- Forum: Bug Reports
- Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
- Replies: 12
- Views: 1877
Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
I found the bin BinFactor when I started searching for a fix, but it seemed to be the pixel area of the bin, not the bin value. This looked like something for internal use and it also seemed pretty weird in my code to check if the bin was 2 by checking to see if BinFactor was 4. I thought maybe you ...
- Thu Apr 18, 2024 5:31 am
- Forum: Bug Reports
- Topic: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
- Replies: 12
- Views: 1877
My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
So I have a several scripts that access various controls, such as binning and the focuser controls, etc. These all worked fine under version 4.1.11137.0 in late October 2023 (same windows 10 installation as I have now, but there have been a few security updates since then, I presume). I finally got ...