PixInsight Forum (historical)
Software Development => PCL and PJSR Development => Topic started by: Harry page on 2010 May 08 03:25:06
-
Hi
I have no script skills / knowledge what so ever ???, but there are things I would like to do and could anybody point me in the direction of where I
could learn :D
Don't forget it has to be for dumbo's :'(
Harry
-
this is a good idea.......so, I'll piggyback on your request.....incognito, of course.
I am a "dumbo" also, but this way I won't have to admit it.......and no one would have ever guessed by my questions and confusion.
best regards,
Earl
-
The first thing you need to do is define a goal. No one will write a comprehensive tutorial about everything :)
When I wrote my first javascript for PI I simply took one of the examples and modified it for my evil purposes.
-
Where do you get started ?
Max
-
Hi
I have been looking at other people code , but if you have no idea of the syntax or grammar its a bit like Chinese to me
Harry
-
Harry,
If you google "java tutorial" you will get pages and pages of sites that give tutorials....snippets of code...and tons of how to's.
bud
-
Hi Harry,
1) you have to understand logic of simplest operator: for(;;){}, while(){}, do{}while() and of course if(){}else{}, ect.
2) Just try to write something to output log via console.writeln("result: ", x, y).
3) Edit one of script and see what's happen. For example try to DrowSignature.js ( try change x,y position of signature at your image or something else ).
I hope it's help.
-
Hi
Will look at that , Its only japanese now ;D
Harry
-
Will look at that , Its only japanese now ;D
OK. Step by step.
if(){}else{} - what is it?
Translated from japanese it is:
if ( black is black) do { that } else do { that }
-
Ok
Starting to get the idea --Pity its not zx spectrum basic I might remember how to do that ( god I am old ) :D
Harry
-
Starting to get the idea --Pity its not zx spectrum basic I might remember how to do that ( god I am old ) :D
Z80 - it's my love.
My first ZXSpectrum was soldered by me personally. Unfortunately 70% of the chips were originally dead. But I have had experience with the oscilloscope. The keyboard has been collected from 2 calculators and had no inscriptions. This did not prevent me to learn ZXSpectrum BASIC, assembler and then in the end I knew by heart all the machine code Z80, including the undocumented. I knew absolutely everything that happened in the Z80. What were the days are cool! Now I understand what is happening within 0.0% of those wise boxes. So I picked up PxiInsight JS. It's fun.
-
I still have my ZX 81 with 1k of memory and my 48k spectrum and all the software ,modems ,tape drives :-\
Keep it for another 100 years and it will be worth something :moneyinmouth:
but back to ps JS and get a bit upto date
Harry
-
...
If you google "java tutorial" you will get pages and pages of sites that give tutorials....snippets of code...and tons of how to's.
.
Note that JavaScript and Java are quite different things. Stick to the JavaScript tutorials....
-
I'll repeat my earlier advise: figure out what you want to achieve first, preferably something reasonable :)
Generally if you're not a programmer I think PI is not the place to start. Nothing is impossible with enough effort so don't let me stop you but let's be realistic here. PSJR and PCL aren't really easy stepping stones.
-
Hi Sander
See I believed other people who said I must be a genius as I can work in pixinsight 8) and of course this has turned out not to be true :'(
Oh well , I will grinding away at it till the old brain accepts what I am trying to jam in it O0
Harry
-
Hi Harry,
javascript coding is a skill valuable beyond PI so it's definitely a worthwhile endeavour. Set yourself some simple goals like "write a script that cycles through all the pixels in an image and calculates the totals". Or 'draw a line from one corner to the next'.
Use the existing scripts as starting points. Forget about GUI elements at first, just to simplify matters a bit.
-
Hi
Good advice don't run before the walk jobbie ;D
Harry
-
Hi Harry,
And, DEFINITELY have a look at my 'Batch DeBayer" PJSR script. Not for what it does though, look at it for the TONS of comments that I added to it so that 'I' actually knew what the heck was going on!
In other words, start with one of the very simple scripts, and then 'search' within my script for similar code - if you can't figure out what is going on. It may just be that I have used a similar piece of code and I may then have added a bunch of comments to try and explain what is happening.
Heck, if you can handle ZX81 Basic, or Spectrum Basic, you can handle PJSR. The principles ARE very much the same - just that some of the rules have changed.
And, your ZX81 is ALREADY worth good money now, but not as much as a ZX80. I have a Sinclair Scientific calculator - home built - c. 1973/74 vintage and those are really valuable nowadays, along with my home-built Sinclair 'Black Watch'. I wish I had kept my ZX80, all the peripherals for my ZX81, and my ZX Spectrum, with all of its bits-n-pieces.
Cheers,