PixInsight Forum (historical)

PixInsight => Wish List => Topic started by: Cheyenne on 2009 July 10 08:24:54

Title: Minor suggestion for the JS scripts that are supplied (and for future scripts)..
Post by: Cheyenne on 2009 July 10 08:24:54
This is real minor, but it would be nice if the scripts would simply write out the settings that were entered in their dialogs to the process console.  That way if one needs to re-run the script they can see what was used.

Title: Re: Minor suggestion for the JS scripts that are supplied (and for future scripts)..
Post by: georg.viehoever on 2009 July 10 09:27:19
Cheyenne,

this actually goes in the same direction as my question in http://pixinsight.com/forum/index.php?topic=1266.0. Currently, the Settings of a script are not stores in the processing history, and thus it is impossible to run them again with the same settings (e.g. on an Image Container or a different image).

I have no solution yet.

Georg
Title: Re: Minor suggestion for the JS scripts that are supplied (and for future scripts)..
Post by: Cheyenne on 2009 July 10 09:55:55
Yeah.. that was why my solution is to simply have the script writers just echo the values of the parameters so that it shows up in the process console log.  Not perfect, but easy to implement.
Title: Re: Minor suggestion for the JS scripts that are supplied (and for future scripts)..
Post by: David Serrano on 2009 July 30 14:33:00
Scripts aren't PixInsight processes, so you can't take instances of them, and their parameters can't be stored anywhere that I know of. The supplied ones can be modified to make use of the Settings PJSR object to store the latest set of parameters specified (or even older ones too, if desired), but there's no easy and convenient way to store them in a place comparable to .psm files. What I usually do is take note of the relevant information into one of my process icons, like "Following this process, do a MaskedStretchTransform with the following parameters: foo -> 42, bar -> 69".
Title: Re: Minor suggestion for the JS scripts that are supplied (and for future scripts)..
Post by: Cheyenne on 2009 July 30 22:16:00
There is the process console log which can be "captured" or at least viewed.  My suggestion just makes it easier to "take notes". 
Title: Re: Minor suggestion for the JS scripts that are supplied (and for future scripts)..
Post by: georg.viehoever on 2009 July 30 23:31:54
Hi David,

I think it would be technically feasible to write scripts in  a way that works both for interactive and batch operations, just as normal PI processes. Currently, you just get an error message when you try to do so (http://pixinsight.com/forum/index.php?topic=1266.0). Maybe Juan can create a suitable interface (or it already exists and we just do not know yet....).

Georg