Search found 151 matches

by lowenthalm
Thu Apr 25, 2024 4:36 am
Forum: How do I?
Topic: Passing parameters to Python scripts from sequences
Replies: 5
Views: 136

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...
by lowenthalm
Wed Apr 24, 2024 3:38 am
Forum: How do I?
Topic: Passing parameters to Python scripts from sequences
Replies: 5
Views: 136

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...
by lowenthalm
Mon Apr 22, 2024 7:20 pm
Forum: How do I?
Topic: Passing parameters to Python scripts from sequences
Replies: 5
Views: 136

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 ...
by lowenthalm
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: 9
Views: 1298

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...
by lowenthalm
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: 9
Views: 1298

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...
by lowenthalm
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: 9
Views: 1298

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...
by lowenthalm
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: 9
Views: 1298

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 ...
by lowenthalm
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: 9
Views: 1298

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 ...
by lowenthalm
Tue Oct 03, 2023 12:44 am
Forum: SharpCap Beta Testing Forum
Topic: Some missing modulo math in sequences!
Replies: 1
Views: 5653

Some missing modulo math in sequences!

I was running a sequence a couple of days ago using Version 4.1.1013.0 (9/4/2023) and ran into an interesting issue. I was using the following code in a RA scanning focus test I was running. SEQUENCE ... MOUNT OFFSET 4 0 .... END SEQUENCE The script had worked just fine a while back and suddenly sta...
by lowenthalm
Wed Sep 20, 2023 4:25 am
Forum: Scripting
Topic: Can periodic Python tasks be installed?
Replies: 1
Views: 5864

Can periodic Python tasks be installed?

I want to record camera cooler behavior periodically, probably every 30 seconds or so. Is there a way of installing Python script or function object that is called periodically?