Author Topic: Where to start with scripting  (Read 4058 times)

Offline JamieInCLT

  • Newcomer
  • Posts: 45
    • My Astrobin
Where to start with scripting
« on: 2012 February 29 12:04:25 »
Are there any docs or tutorials that tell you how to get started with PI scripting?

Thanks,

-jamie

Offline marekc

  • PixInsight Addict
  • ***
  • Posts: 177
Re: Where to start with scripting
« Reply #1 on: 2012 February 29 21:52:25 »
Hi Jamie,

I'd be curious to learn about this, too. I'm not a programmer, and I'd love to learn enough to start making scripts to help my astro-imaging and image processing.

I'd love to learn some `scripting for non-programmers' for Pixinsight, and for MaximDL. I wish I could start building more automated workflows for my MaximDL acquisition, too.

It seems to me like it's often hard to find good guides to programming-related skills, that don't already assume the reader is a programmer.

- Marek

Offline JamieInCLT

  • Newcomer
  • Posts: 45
    • My Astrobin
Re: Where to start with scripting
« Reply #2 on: 2012 March 01 04:05:47 »
Mostly looking for some sort of browser of things that you can do- PJSR capabilities, etc. 

For example, some things that I might want to do-
  • Build a list of files
  • Specify a naming prefix in a text bose
  • Get the exposure time from each the of files
  • rename the files with the exposure time i them

I don't know how much use it would be to me, but it would be a good start ;)

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Where to start with scripting
« Reply #3 on: 2012 March 01 04:31:43 »
Well, the first place to go is the source code of the current scripts :) Pick a simple one, and try to understand the code. Then, make a few minor changes, and see if it works...
If you want to use a process with a custom set of parameters, and you don't know the code, just configure it on it's window, and drop a instance on a process container. On the right you may see the js code to call that instance (expand the window).
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline JamieInCLT

  • Newcomer
  • Posts: 45
    • My Astrobin
Re: Where to start with scripting
« Reply #4 on: 2012 March 01 07:21:58 »
Thanks!