Getting hold of the pause button in Live Stacking

Discussions on extending SharpCap using the built in Python scripting functionality
Post Reply
BillC2018
Posts: 7
Joined: Fri Apr 27, 2018 6:39 pm

Getting hold of the pause button in Live Stacking

#1

Post by BillC2018 »

Hi!
Is there a way to pause the camera while live stacking (or at least pause the stacking). When I am doing a regular capture sequence I can set the selected camera pause flag to true when I send the message to phd to do a dither, and then set it back to false when phd reports that it is doing guiding again.
I was thinking I could take the same approach with Live stacking, I can just use the framecount to tell when to dither, but for the live of me I cant find a way to pause / stop the stacking process while dithering is happening.

Thanks !

Bill
User avatar
admin
Site Admin
Posts: 13122
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Getting hold of the pause button in Live Stacking

#2

Post by admin »

It's easy :)

Code: Select all

SharpCap.LiveStacking.Parameters.Paused = True
... dither ...
... wait at least one frame to avoid stacking dithered frame ...
SharpCap.LiveStacking.Parameters.Paused = False
Robin
BillC2018
Posts: 7
Joined: Fri Apr 27, 2018 6:39 pm

Re: Getting hold of the pause button in Live Stacking

#3

Post by BillC2018 »

Ahhh ..

Never thought to look for a .livestacking. object :) was going off the current camera .. Thanks!
BillC2018
Posts: 7
Joined: Fri Apr 27, 2018 6:39 pm

Re: Getting hold of the pause button in Live Stacking

#4

Post by BillC2018 »

So the next question would be is there a way to tell when LiveStacking is active as opposed to just previewing ?
User avatar
admin
Site Admin
Posts: 13122
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Getting hold of the pause button in Live Stacking

#5

Post by admin »

So, to tell if the live stacking panel is open and hence live stacking is active, use

Code: Select all

print SharpCap.LiveStacking.IsActive
I think that property and the 'Paused' property pretty much cover everything - you can either have

* live stacking off or
* live stacking on or
* live stacking on but paused

cheers,

Robin
BillC2018
Posts: 7
Joined: Fri Apr 27, 2018 6:39 pm

Re: Getting hold of the pause button in Live Stacking

#6

Post by BillC2018 »

Thanks .
Post Reply