×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Post capture script parameters

  • Posts: 167
  • Thank you received: 54
Hi

in order to play around with stacking,
i'd like to know if there is a way to pass a few parameters to the script you can execute after each capture,
or if this script can use some sort of global parameters
(like index of image, target, filter, TS, etc...)
Any thoughts ?



Gilles.
Last edit: 5 years 10 months ago by gehelem.
5 years 10 months ago #26005
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 57
  • Thank you received: 12
fyi, Don't know if you've seen this.

indilib.org/develop/developer-manual/104-scripting.html

This is indi properties vs EKOS but you may be able to get what you want. Your idea of "variables" like $filter, etc is a great idea.
5 years 10 months ago #26008

Please Log in or Create an account to join the conversation.

  • Posts: 167
  • Thank you received: 54
Hi

doing this i'm able to pass parameters, it looks to do what i want... :)
Any advice ?
diff --git a/kstars/ekos/capture/capture.cpp b/kstars/ekos/capture/capture.cpp
index 561a89b5c..10b56fdf4 100644
--- a/kstars/ekos/capture/capture.cpp
+++ b/kstars/ekos/capture/capture.cpp
@@ -1229,7 +1229,18 @@ bool Capture::setCaptureComplete()
     // Check if we need to execute post capture script first
     if (activeJob->getPostCaptureScript().isEmpty() == false)
     {
-        postCaptureScript.start(activeJob->getPostCaptureScript());
+        postCaptureScript.start(activeJob->getPostCaptureScript(), QStringList() 
+        << activeJob->getFilterName() 
+        << activeJob->getFullPrefix() 
+        << activeJob->getRemoteDir() 
+        << activeJob->getLocalDir() 
+        << activeJob->getRawPrefix() 
+        << activeJob->getDirectoryPostfix() 
+        << QString::number(activeJob->getExposure()) 
+        << QString::number(activeJob->getFrameType()) 
+        << QString::number(seqCurrentCount) 
+        << QString::number(seqTotalCount) 
+        );
         appendLogText(i18n("Executing post capture script %1", activeJob->getPostCaptureScript()));
         return true;
     }
5 years 8 months ago #27440

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0

Replied by cwb on topic Post capture script parameters

Hi gehelem,

I wonder if anything ever came out of this.
Did you find a solution?

Cheers
--Chr.
1 month 4 days ago #99299

Please Log in or Create an account to join the conversation.

Time to create page: 0.536 seconds