Author Topic: Creating an icon from a script  (Read 5135 times)

Offline mcore

  • Newcomer
  • Posts: 4
Creating an icon from a script
« on: 2020 February 01 10:21:02 »
Hi all -

I'm scripting my standard processing sequence.  I currently have scripts that calibrate and cosmetic correct new data, so that the first thing I need to do is subframe selection.  What I'd like to do is create subframe selection icons as the output of my script so that I can just click and go.  I've found the "writeIcon()" method of the ProcessInstance base class, but this only works to overwrite an existing process icon on the desktop.  What I'd like to do is create a new process icon and then write it.  Does anyone know how / whether this is possible?

Thanks.

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Creating an icon from a script
« Reply #1 on: 2020 February 03 09:20:29 »
Quote
What I'd like to do is create a new process icon and then write it.

This cannot be done yet. I plan on including a new Workspace core JavaScript object in version 1.8.9 of PixInsight, which will allow scripts to have full control over all workspaces, including workspace management, window and icon positions, dimensions and Z order, as well as creation of new process and image icons. So you'll have to have some patience to implement this; sorry for the inconvenience.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/