Author Topic: How to find out more about the PJSR objects..  (Read 1542 times)

Offline mcgillca

  • PixInsight Enthusiast
  • **
  • Posts: 77
    • View Profile
    • Astrobin Website
How to find out more about the PJSR objects..
« on: 2015 January 18 04:11:03 »
Hi - I've started messing with scripts (I thought I'd see if I could code up something to produce HR diagrams).

I've never coded in PJSR before, but the language looks relatively simple. Understanding the PJSR objects in PI looks a lot harder!

I managed to produce a small toy script with interface by using some simple scripts (AberattionInspector) as a basis, and I can see more or less how they've worked, but looking at other scripts its clear that there are a significant number of objects with lots of methods and data. Is there any way to find out what is there, and what they do, other than go through other's scripts?

I've been through this entire section, and I note that Juan first mentioned that PJSR documentation was on the to-do list in 2009, so I'm guessing it won't be available soon  :)

I've also seen that reference to a Parameters object - looks like a global object created by PI - is this right? Any documentation for it, and any other interesting global objects?

Colin
Paramount MX
Ikharos 8" Carbon Truss RC
Atik 460ex
Atik EFW2 with Baader LRGB and HA SII OIII
ONAG with Atik 314L+
http://www.astrobin.com/users/mcgillca/

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 509
    • View Profile
Re: How to find out more about the PJSR objects..
« Reply #1 on: 2015 January 18 22:13:52 »
I'm afraid that the only way is to read existing scripts and browse the forum. Enjoy ????
-- bitli

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1079
    • View Profile
Re: How to find out more about the PJSR objects..
« Reply #2 on: 2015 January 18 23:21:54 »
If you are just getting started, you might have missed this:

View > Explorer Windows > Object Explorer

It gives a list of Core JavaScript and External Scriptable objects, with properties, methods, arguments and results.

Without this scripting would be impossible for me.  :)

Mike

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 509
    • View Profile
Re: How to find out more about the PJSR objects..
« Reply #3 on: 2015 January 19 05:53:42 »
Good point Mike.
If you have an exploratory mind, you may also look at the PCL headers or example source code, as often the PJSR is a thin wrapper over native PCL objects. And naturally the original Mozilla documentation for pure javascript information (https://developer.mozilla.org/en-US/docs/Web/JavaScript)
-- bitli

Offline mcgillca

  • PixInsight Enthusiast
  • **
  • Posts: 77
    • View Profile
    • Astrobin Website
Re: How to find out more about the PJSR objects..
« Reply #4 on: 2015 January 19 09:17:54 »
Thank you very much, Bitli and Mike.

Very helpful - the list of objects, data and methods is exactly what I was looking for.

Colin
Paramount MX
Ikharos 8" Carbon Truss RC
Atik 460ex
Atik EFW2 with Baader LRGB and HA SII OIII
ONAG with Atik 314L+
http://www.astrobin.com/users/mcgillca/