Author Topic: ProcessContainer Question  (Read 604 times)

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 260
    • Buckeyestargazer.net
ProcessContainer Question
« on: 2019 September 28 07:05:16 »
Is there a way to add things to a ProcessContainer like duplicate and rename an image?  I'm working on ways to automate parts of my processing workflow and it would be handy if I could copy images and rename them within the ProcessContainer. 
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 260
    • Buckeyestargazer.net
Re: ProcessContainer Question
« Reply #1 on: 2019 October 10 13:19:25 »
Bump.  Anyone?
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M

Offline Brad

  • Newcomer
  • Posts: 23
Re: ProcessContainer Question
« Reply #2 on: 2019 October 11 04:34:35 »
Hmm. I assume that the source window to copy and rename is an open image on the desktop or is this a on disk operation you're looking to do?
-Brad

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 260
    • Buckeyestargazer.net
Re: ProcessContainer Question
« Reply #3 on: 2019 October 11 04:42:33 »
Hmm. I assume that the source window to copy and rename is an open image on the desktop or is this a on disk operation you're looking to do?
It would be an open image on the desktop.
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: ProcessContainer Question
« Reply #4 on: 2019 October 11 04:46:24 »
Hi Joel,

Quote
Is there a way to add things to a ProcessContainer like duplicate and rename an image?

There is an ImageIdentifier process, which you can use to rename a view, and of course you can include an instance of ImageIdentifier in a ProcessContainer instance. There is no process to duplicate an image, so this cannot be done using process instances, including ProcessContainer instances. The main reason is that duplicating an image does not transform anything in an image. You should write a script to perform this kind of actions. Scripting is much easier in PixInsight than it may seem at first sight; don't hesitate to ask about this if you are interested.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 260
    • Buckeyestargazer.net
Re: ProcessContainer Question
« Reply #5 on: 2019 October 11 04:49:52 »
Hi Joel,

Quote
Is there a way to add things to a ProcessContainer like duplicate and rename an image?

There is an ImageIdentifier process, which you can use to rename a view, and of course you can include an instance of ImageIdentifier in a ProcessContainer instance. There is no process to duplicate an image, so this cannot be done using process instances, including ProcessContainer instances. The main reason is that duplicating an image does not transform anything in an image. You should write a script to perform this kind of actions. Scripting is much easier in PixInsight than it may seem at first sight; don't hesitate to ask about this if you are interested.
I don't mind learning how to script; is there a how-to guide to get me started?
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M

Offline Brad

  • Newcomer
  • Posts: 23
Re: ProcessContainer Question
« Reply #6 on: 2019 October 11 05:00:54 »
PixelMath would do what you want as well :-) as a short term solution. Single channel with the source image as the target and create new image as the result with the new name

But Jaun, beat me to the real punch. Scripting is very easy and handy.
-Brad

Offline joelshort

  • PixInsight Addict
  • ***
  • Posts: 260
    • Buckeyestargazer.net
Re: ProcessContainer Question
« Reply #7 on: 2019 October 11 05:57:33 »
PixelMath would do what you want as well :-) as a short term solution. Single channel with the source image as the target and create new image as the result with the new name

But Jaun, beat me to the real punch. Scripting is very easy and handy.

EDIT:  Nevermind...$T

So in PixelMath what do I put in the RGB/K Expression line?  I can't just put in the name of the target image because that would require user input since the images will have different names. 
I'm trying to "automate" a few things so I would need a way to apply the PixelMath process to any image with any name.
 

I did a quick search about how to script in PI and didn't come up with much.  Obviously I'm not a PI guru...

Thanks for your help.
« Last Edit: 2019 October 11 06:08:19 by joelshort »
Joel Short
www.buckeyestargazer.net
CFF135 f6.7, SV80ST, G3-16200M, QHY163M, QHY183M