|
|||
|
HI
right, this is a fun one... basically.... i'm trying to do a script that does 3 different versions of the same photo... i have an IR camera and have found 3 different outputs work in different ways - now i know i could have 3 different scripts and run it 3 times on the same pics - but i'm lazy so have spent many hours trying to get this working... at the moment i can run it on one pic and get the output to a certain folder with 3 different names but the next time i run it on the next photo it over writes the original one and the same if i run a batch now the specific code part that i know will need to be changed is... Code:
# Standard PSP entry point - IR Fix def Do(Environment): Optimise(Environment) One(Environment) SaveAs(Environment,'G:\\Photos\\IR\ A.jpg') RtoB(Environment) SaveAs(Environment,'G:\\Photos\\IR\ B.jpg') RtoG(Environment) SaveAs(Environment,'G:\\Photos\\IR\ C.jpg') anyone any ideas? or am i too much of a programmer/geek? |
|
|||
|
I don't give up too easily and found a little more info today in work...
ReturnImageInfo as a command seems to be able to specify the filename and path, so thats my task for tonight... i also found out it's pretty much python, so something like filename = ReturnImageInfo('Filename') SaveAs(Environment,filename.replace('.jpg', 'A.jpg')) should work hopefully... i can code in Visual Basic, so what i need to do i know, it's knowing the syntax i will post the answer if/when sucessful... |
|
||||
|
That looks promising. I look forward to hearing if it works.
Wulf |
|
|||
|
Woo Hoo
done it... Code:
# Standard PSP entry point - IR Fix
def Do(Environment):
ImageInfo = App.Do( Environment, 'ReturnImageInfo',)
FullPathnFile = ImageInfo['FileName']
PathnFileA = FullPathnFile.replace('.JPG', 'a.JPG')
PathnFileB = FullPathnFile.replace('.JPG', 'b.JPG')
PathnFileC = FullPathnFile.replace('.JPG', 'c.JPG')
Optimise(Environment)
One(Environment)
SaveAs(Environment,PathnFileA)
RtoB(Environment)
SaveAs(Environment,PathnFileB)
RtoG(Environment)
SaveAs(Environment,PathnFileC)
|
|
|||
|
It appears that code appends the a,b,c to the end of the filename. That right? So if your filename is DSC_9876.JPG then each one becomes DSC_9876a.JPG, DSC_9876b.JPG, etc.
Right?
__________________
Drkranger Kaymee Photography Sacramento Photography Examiner Nikon D300, Nikon D50 Sigma 50-150mm f/2.8, Nikkor 50mm f/1.8 |
|
||||
|
That's exactly what it looks to do - just that small change avoids things being overwritten.
Wulf |
|
|||
|
exactly does 3 different things and saves them with a, b & c
some look good with the red colour some look good a little lighter - a R to B makes it look pinky/purplely - b R to G makes it look bluey - c and then i can work on the ones i like by converting properly and touching up slowly :-) |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Each day we send out a quick email to thousands of DPS readers to notify them of updates. This email is just short excerpt of the first few lines of our latest post with a link if you want to read it all. You can unsubscribe from this this service at any time.
This service is provided by a third party (Feedburner) and you can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.
Enter your email address for
Daily Updates:
For those wanting a weekly summary of what happens on this site this free email newsletter is probably your best option. It includes a summary of the tips posted to the site each week. This newsletter is subscribed to by over 25000 readers (many who also subscribe to the other options above) - come join the community!
To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.
Enter your email address for
Free Weekly Newsletter: