Author Topic: PropagatePreviews Script  (Read 11080 times)

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 274
  • Resistance is futile.
    • Astronomí­a Sur
PropagatePreviews Script
« on: 2010 August 17 23:12:39 »
(en español abajo)

Hello,

Inspired by this post, I wrote this simple script (see attach) that copies all active image previews to all open images. There are many improvements that can be done, but it's a start. It has no GUI and, warning, it delete all existing previews and only leaves propagated previews from the active image.

Best regards,

Enzo.

EDIT Aug 19, 2010: GUI added, selection of previews to copy, selection of target images, and preserve existing previews option. New JS file version and screenshot attached.

-

Hola,

Inspirado en este post he escrito este sencillo script (ver adjunto) que copia todos los previews de la imagen activa a todas las imágenes abiertas. Hay muchas mejoras para hacer, pero es un comienzo. No posee interfaz de usuario y, cuidado, el script borra todos los previews existentes y deja únicamente los propagados desde la imagen activa.

Saludos,

Enzo.

EDITADO 19 Ago 2010: Añadido de interfaz de usuario, selección de previews, selección de imágenes de destino y opción de preservar los previews existentes. Nuevo archivo JS y captura de pantalla adjunto.
« Last Edit: 2010 August 19 07:16:04 by Enzo De Bernardini »

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: PropagatePreviews Script
« Reply #1 on: 2010 August 18 10:35:32 »
Cool. As Juan would say, "Welcome to PJSR programming" :)
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 274
  • Resistance is futile.
    • Astronomí­a Sur
Re: PropagatePreviews Script
« Reply #2 on: 2010 August 18 12:04:26 »
Cool. As Juan would say, "Welcome to PJSR programming" :)

Thanks Sander! I hope to be improving my skills with time.  :)

Regards,

Enzo.

Offline peregil

  • Newcomer
  • Posts: 49
    • Observatori Agulló
Re: PropagatePreviews Script
« Reply #3 on: 2010 August 19 03:01:49 »
Hi Enzo,
Thanks for the script! Very useful!

Regards,
Pere

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 274
  • Resistance is futile.
    • Astronomí­a Sur
Re: PropagatePreviews Script
« Reply #4 on: 2010 August 19 06:44:40 »
Thanks for the script! Very useful!

Thanks Pere! I'm glad you find it useful. I update the script with some improvements, including the GUI for greater control.

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: PropagatePreviews Script
« Reply #5 on: 2010 August 19 06:50:39 »
Hi Enzo,

Thanks for this script - I'll download it when I get back to my PI machine

In the meantime, one suggestion, it can be easier if you just post a revision in a new message thread reply. That way, the latest revision level can be easier to find (IMHO, anyway). It might also be useful if the file attachment 'name' included the 'revision level' as well - then it is easier for prospective users to manage to download into their PC.

Trivial points - none of which detract from your excellent efforts.

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: PropagatePreviews Script
« Reply #6 on: 2010 August 19 07:06:48 »
The problem with revision numbers is that PI only finds the first instance when prompted to scan for scripts. So the user needs to remove the old version before adding the new one. As long as a version number is embedded in the script itself I see no issue with the script being published with a single name.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Enzo De Bernardini

  • PTeam Member
  • PixInsight Addict
  • ***
  • Posts: 274
  • Resistance is futile.
    • Astronomí­a Sur
Re: PropagatePreviews Script
« Reply #7 on: 2010 August 19 07:15:01 »
Hi Enzo,

Thanks for this script - I'll download it when I get back to my PI machine

In the meantime, one suggestion, it can be easier if you just post a revision in a new message thread reply. That way, the latest revision level can be easier to find (IMHO, anyway). It might also be useful if the file attachment 'name' included the 'revision level' as well - then it is easier for prospective users to manage to download into their PC.

Trivial points - none of which detract from your excellent efforts.

Cheers,


Thanks Niall!. You're right!, I too find useful the script revision in filename, perhaps only in the zip filename, and then simply overwrite the current js (for avoid the detail commented by Sander) In the future I think it would be interesting to have a script-repository, more organized.

Best regards, and thanks for the tips.

Enzo.

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: PropagatePreviews Script
« Reply #8 on: 2010 August 19 08:24:19 »
Quote
script-repository, more organized

I was going to mention exactly that in my last post.

Perhaps the detailed discussion of this should be moved into the Wish List section of the Forum - so that it is more 'visible'

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: PropagatePreviews Script
« Reply #9 on: 2010 August 19 08:28:19 »
AstroPlanner has a nice built in user-submitted script interface. Of course it also has many many scripts :)
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: PropagatePreviews Script
« Reply #10 on: 2010 August 19 08:29:36 »
"Centralised Module Repository"

I have just opened a new message thread to this effect in the Wish List section.

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC