Author Topic: Editing ProcessContainer image window names?  (Read 3234 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Editing ProcessContainer image window names?
« on: 2012 June 13 11:55:55 »
I just started playing with ProcessContainers derived from History and have a newbie question.

Is it possible to edit a process mask name in a ProcessContainer?

Sometime I break a link to a mask and  then sometime later restore the mask and want to remove the <* broken *> flag.

Other times I am experimenting with different mask versions and just want to rename the mask to a different version and then replay the container.

Also, if the ProcessContainer contains a ImageIdentifier process instance, I'd like to change its name, again to reflect a different processing version.

Also, if the Container itself contains a ProcessContainer instance, I'd like to edit the names inside it.

Basically, anywhere a image window name occurs, I'd like to edit it.

Is this possible? Or is there some other way to accomplish something like this easily?

Mike
« Last Edit: 2012 June 13 12:01:37 by mschuster »

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Editing ProcessContainer image window names?
« Reply #1 on: 2012 June 13 12:36:10 »
The easiest way to do these changes is:

- Save your ProcessContainer icon(s) as a .xpsm file (Process > Process Icons > Save Process Icons...)

- Open the .xpsm file with Script Editor (you have to select "XML files" as the file type on the Open Editor Files dialog).

- XPSM is just standard XML code, so it is very easy to edit. For example, this is a simple XPSM file with a ProcessContainer instance:

Code: [Select]
<xpsm version="1.0" xmlns="http://www.pixinsight.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.pixinsight.com http://pixinsight.com/xsd/xpsm-1.0.xsd">
   <instance class="ProcessContainer" id="Process01_instance">
      <instance class="ImageIdentifier" enabled="true">
         <time start="2012-06-13T19:25:20Z" span="0.003"/>
         <parameter id="id">this_is_a_test</parameter>
      </instance>
   </instance>
   <icon id="Process01" instance="Process01_instance" xpos="1391" ypos="521" workspace="Workspace01"/>
</xpsm>

If you change 'this_is_a_test' with 'something_different' (for example), then you have changed the 'id' parameter of the ImageIdentifier instance transported by the Process01 icon.

- Save the modified XPSM file.

- Load the XPSM file. Now you have your modified icon(s) on PI's workspace.

Tricky solution, but hope this helps.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Editing ProcessContainer image window names?
« Reply #2 on: 2012 June 13 12:55:15 »
Yes this helps thank you.