Author Topic: Cannot Apply CC when BP Open...Why Not?  (Read 3481 times)

Offline Adrien

  • Newcomer
  • Posts: 18
Cannot Apply CC when BP Open...Why Not?
« on: 2015 November 20 06:50:07 »
Hello.
Is there any reason why such a simple task as opening a pre-defined CC cannot be made AFTER the BP script has been opened and setup? Most annoying.
Thanks
Adrien Richardson

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Cannot Apply CC when BP Open...Why Not?
« Reply #1 on: 2015 November 20 10:09:41 »
yes, scripts are currently modal in pixinsight.

rob

Offline Adrien

  • Newcomer
  • Posts: 18
Re: Cannot Apply CC when BP Open...Why Not?
« Reply #2 on: 2015 November 21 03:43:01 »
I am not a programmer, nor scientist. What does this mean?
Thank you
Adrien

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Cannot Apply CC when BP Open...Why Not?
« Reply #3 on: 2015 November 21 07:51:13 »
a modal dialog box is one which completely takes over the input focus of the application. no other UI elements except for the modal object will respond to user inputs...

this is something that juan has wanted to fix for a long time but many other things have higher priority...

rob

Offline Adrien

  • Newcomer
  • Posts: 18
Re: Cannot Apply CC when BP Open...Why Not?
« Reply #4 on: 2015 November 21 21:49:13 »
Hi Rob
Thanks for the explanation. But may I suggest that it is these relatively "simple" things that put off new-comers to PI.
Thanks
Adrien Richardson

Offline RickS

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1298
Re: Cannot Apply CC when BP Open...Why Not?
« Reply #5 on: 2015 November 21 21:58:57 »
It is annoying, Adrien, but maybe not as much as you think.  Did you know you could save your BPP settings as a process icon, quit the script, load your CC icon and then open the BPP script again?  To save the BPP settings just drag the New Instance button at the bottom left of the BPP dialog to the desktop like you would do with any process.  To reopen BPP, double click on the process icon then click the Apply Global button (the little blue circle) on the Script dialog.  Hope that helps...

Cheers,
Rick.

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: Cannot Apply CC when BP Open...Why Not?
« Reply #6 on: 2015 November 22 03:21:12 »
Thanks for the explanation. But may I suggest that it is these relatively "simple" things that put off new-comers to PI.
One of the reasons people use PI is the scripting engine that is way above anything available in other programs. The scripting engine has this limitation that I am sure that if it would easy to fix Juan would have already done it. Meanwhile, IMO it is much better to have modal dialogs in the scripts that not having them at all.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Cannot Apply CC when BP Open...Why Not?
« Reply #7 on: 2015 November 22 09:00:32 »
yeah, there are so many amazing scripts that have all come from users. while the PCL interface is open for people to write processes in C or other compiled languages, the barrier to entry for writing scripts is really low, and so we see a lot of them coming from ordinary users. the BPP script itself was written by a user and then "made official" by juan. sometimes a script makes the leap to a process, like MaskedStretch.

Rick's advice is how it's done in the current scheme of things...

rob

Offline Warhen

  • PTeam Member
  • PixInsight Old Hand
  • ****
  • Posts: 490
    • Billions and Billions
Re: Cannot Apply CC when BP Open...Why Not?
« Reply #8 on: 2015 November 23 21:20:05 »
Simply prepare a CosmeticCorrection new instance icon before opening the BPP script and point the script to the icon on the desktop. New Instances are explained in many tutorials including mine and Harry's etc.
Best always, Warren

Warren A. Keller
www.ip4ap.com