Auto re enable save individual frames

Got an idea for something that SharpCap should do? Share it here.
Forum rules
'+1' posts are welcome in this area of the forums to indicate your support for a particular feature suggestion. Suggestions that get the most +1's will be seriously considered for inclusion in future versions of SharpCap.
Post Reply
nexusjeep
Posts: 293
Joined: Thu Oct 18, 2018 3:01 pm
Location: Gloucestershire

Auto re enable save individual frames

#1

Post by nexusjeep »

Hi Robin,
Having just had a disaster would it be possible to have a setting in the defaults for when Sharpcap starts to select that save individual frames in live stack is enabled by default if desired. The reason for asking is last week or the week before whenever the last clear night was I was playing with the Brain function with narrowband filters as per the other thread discussion so turned off save individual frames as I was just experimenting with the live stack.

Then tonight low and behold we actually had a clear sky so went out to grab some Sii of the horse head left it running came back and closed down Sharpcap to discover that I had not saved any images :o optimistically won't do it again :D but with increasing numbers of birthdays can't guarantee it.

Optimistically

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

Re: Auto re enable save individual frames

#2

Post by admin »

Hi Nick,

Are you sure that SharpCap didn't auto save your live stack for you on shutdown? I believe this is the default behaviour in this you have unchecked the 'auto save on clear/close' option in the live stacking options. It should have saved your stack is a 32-bit fits file in an autosave subfolder if that option was still checked. Also note that the latest versions of SharpCap have the capability to prompt the confirmation on close if you are capturing or live stacking – this is configurable in the general tab of the SharpCap settings.

Cheers, Robin
nexusjeep
Posts: 293
Joined: Thu Oct 18, 2018 3:01 pm
Location: Gloucestershire

Re: Auto re enable save individual frames

#3

Post by nexusjeep »

It's not the live stack that I am after its the individual frames that were used in the live stack, as I process in APP once I have them captured as I had previously been fiddling I had disabled that option in the live stack control panel and it would be useful to be able to have it auto re activate after a shutdown plan B is a large post it note stuck to the monitor :D

It's the option in the image

Cheers
Nick
Attachments
option.jpg
option.jpg (25.37 KiB) Viewed 16166 times
User avatar
admin
Site Admin
Posts: 13296
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Auto re enable save individual frames

#4

Post by admin »

Hi,

Adding extra options for very specialist requirements is unfortunately a bit of a slippery slope – before you know where you are you have so many options that can be configured that beginner users have no idea what to do, or even worse start changing options they don't understand and then struggle to work out why the software isn't working. With this sort of thing I much prefer to make a solution available via the SharpCap Python scripting language so that advanced users can set the application up as they choose and beginners and intermediates don't have to worry about things.

In order to make this possible I have tweaked the very latest build of SharpCap 3.2 .5936 so that it's possible to use the scripting language to turn on the option you are interested in. The code required is

Code: Select all

SharpCap.LiveStacking.SaveStackedFrames = True
You should save this code in a .py file and then configure SharpCap to run that file at start-up (from the start-up scripts tab SharpCap settings).

Hope this helps, Robin
nexusjeep
Posts: 293
Joined: Thu Oct 18, 2018 3:01 pm
Location: Gloucestershire

Re: Auto re enable save individual frames

#5

Post by nexusjeep »

Cheers Robin,

That will sort it fine will download and install it , thanks for all the help and for a great piece of software, if only you could code something to sort the the weather :( .


Regards
Nick
TDunnavant
Posts: 19
Joined: Mon Apr 25, 2022 4:16 am

Re: Auto re enable save individual frames

#6

Post by TDunnavant »

Hi, Robin,

I've been bitten similarly twice, recently (yes, advancing years)!. I'm using SharpCap 4.1. I implemented the Python snippet you described previously in this thread. SharpCap failed to execute the script, with the Python console saying that the "LiveStackTransform" object has no attribute "SaveStackedFrames".

Can you please advise regarding a script snippet that might be used to set SC to autosave stacked frames? It really is a pain to lose several hours of images because I didn't notice that a drop down hadn't been set properly.
User avatar
admin
Site Admin
Posts: 13296
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Auto re enable save individual frames

#7

Post by admin »

Hi,

the snipped here is out-of-date, since when it was first published the only options were save all raw frames or save none. Now you can choose between

All, None, AddedToStack and WhileNotPausedOrDithering

the corresponding snippet for up-to-date versions of SharpCap is

Code: Select all

from SharpCap.FrameTransforms.LiveStacking import SaveRawFramesOption
SharpCap.LiveStacking.SaveRawFrames = SaveRawFramesOption.All
In the second line, you can change 'All' to one of the other options.

cheers,

Robin
TDunnavant
Posts: 19
Joined: Mon Apr 25, 2022 4:16 am

Re: Auto re enable save individual frames

#8

Post by TDunnavant »

That does it!

Thank you!
Post Reply