PixInsight Forum (historical)
Software Development => PCL and PJSR Development => Topic started by: mcgillca 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
-
I'm afraid that the only way is to read existing scripts and browse the forum. Enjoy ????
-- bitli
-
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
-
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
-
Thank you very much, Bitli and Mike.
Very helpful - the list of objects, data and methods is exactly what I was looking for.
Colin