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.Controls
iter = ctlcol.GetEnumerator()
print( "iter", iter.MoveNext() )
iterc1 = iter.Current
print( "iter", iter.MoveNext() )
However, I just reach a dead end with iterc1.Controls.Count being 0. How do I get access to the live stacking panel controls? I have to go back to using 4.1.11137.0 from back year until I can figure out how to change my scripts to function with the new version.
My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
Forum rules
If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Please also read about Troubleshooting USB Issues before posting.
*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***
Please include the following details in any bug report:
* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Please also read about Troubleshooting USB Issues before posting.
*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***
Please include the following details in any bug report:
* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
-
- Posts: 156
- Joined: Mon May 07, 2018 12:27 am
- admin
- Site Admin
- Posts: 13473
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
Hi,
in the latest update, I did add some extra access to try to cover your previous list of missing things - you can get at those using
These two new objects allow access to the guiding and frame filtering settings that were previously reached via access to internal parts of the code.
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
in the latest update, I did add some extra access to try to cover your previous list of missing things - you can get at those using
Code: Select all
SharpCap.LiveStacking.Guiding
SharpCap.LiveStacking.FrameFiltering
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
-
- Posts: 156
- Joined: Mon May 07, 2018 12:27 am
Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
I haven't been using them in my code. I was just desperately trying to looking for some way of accessing the controls that I had been using. Thanks for the info on the new elements in LiveStacking. I'll check through these new access points.admin wrote: ↑Sun Apr 28, 2024 1:32 pm
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
-
- Posts: 156
- Joined: Mon May 07, 2018 12:27 am
Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
I finished updating my code for the newer version of SharpCap. It looks like all the important stuff I needed in live stack is available in SharpCapInstall-4.1.12100.0 and my code all works. Thanks for adding this stuff back in!
- admin
- Site Admin
- Posts: 13473
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: My Python scripts broke between 4.1.11137.0 and 4.1.12025.0
Hi,
good to hear that the new API covers enough ground for you!
clear skies
Robin
good to hear that the new API covers enough ground for you!
clear skies
Robin