Author Topic: Disabling output warnings and messages - dynamic crop.  (Read 94 times)

Offline silentrunning

  • Newcomer
  • Posts: 18
    • View Profile
Disabling output warnings and messages - dynamic crop.
« on: 2019 February 16 08:25:19 »
I found a couple of threads that have raised this question before but have a not found a solution.

Dynamic crop generates a warning message about loss of data before cropping. How do I turn this off as running a image container with 20 files into a dynamic crop instance requires me to manually respond to this message 20 times?

Many thanks

John
« Last Edit: 2019 February 16 09:14:11 by silentrunning »

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 6481
    • View Profile
    • http://pixinsight.com/
Re: Disabling output warnings and messages - dynamic crop.
« Reply #1 on: 2019 February 16 12:20:02 »
Hi John,

The DynamicCrop process has a noGUIMessages parameter that you can set to true in order to suppress these notifications. However, this parameter is not available on the DynamicCrop tool interface.

To change the noGUIMessages parameter, you have to edit the instance you want to use as source code. This is very easy to do as follows:

- Open the DynamicCrop instance you want to use with the DynamicCrop tool. For example, if you have saved it as an icon, just double click the icon, or drag it to the tool's control bar (the bar with icons at the bottom).

- On DynamicCrop, click the Edit Instance Source Code button (see the attached screenshot).

- This will open a code editor floating window, where you'll see your instance's parameters. Set P.noGUIMessages = true;

- Click the Commit button (green check mark).

Now you can run the ImageContainer on the modified instance directly on the DynamicCrop tool, or save it as a new process icon, if you prefer. Let me know if this helps.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline silentrunning

  • Newcomer
  • Posts: 18
    • View Profile
Re: Disabling output warnings and messages - dynamic crop.
« Reply #2 on: 2019 February 17 01:45:42 »
Thank you Juan that certainly works.

Is it possible to add a "suppress output messages" checkbox to the dynamic crop gui as delving into source code seems a bit of a hack and no doubt others will continue to raise the same question in the future?

Regards

John