Neue Testversion 20.40b11

Hier diskutieren die Betatester von PhotoLine untereinander und mit den Entwicklern
User avatar
Gerhard Huber
Entwickler
Entwickler
Posts: 3990
Joined: Mon 18 Nov 2002 15:30
Location: Bad Gögging

Neue Testversion 20.40b11

Post by Gerhard Huber »

Hallo,

es gibt wieder eine neue Testversion 20.40b11.

Windows:
http://www.pl32.com/beta/pl2040b11.zip


Mac OS:
http://www.pl32.com/beta/plx2040b11.zip



Neues:
- Scripting für Textebenen fertig



diverse kleine Fehler beseitigt
User avatar
Gerhard Huber
Entwickler
Entwickler
Posts: 3990
Joined: Mon 18 Nov 2002 15:30
Location: Bad Gögging

Re: Neue Testversion 20.40b11

Post by Gerhard Huber »

ich habe mein C#-Projekt um eine zweite Funktion erweitert.
Diese macht, wie schon manchmal hier im Forum gewünscht, einen "Ebenenexport". Dabei wird abhängig vom Dateinamen der Ebenen exportiert. Ich habe ein Musterbild eingefügt.
Das Script zeigt, wie man in C# alle Ebenen eines Dokuments durchläuft und wie man einzelne Ebenen speichert.
You do not have the required permissions to view the files attached to this post.
User avatar
photoken
Mitglied
Posts: 2162
Joined: Sat 28 Sep 2013 01:25

No VS error: COM reference

Post by photoken »

Thanks for posting the new ScriptC VS project.

When I opened that project in VS2017, I get 24 of these errors:
Processing COM reference "PhotoLine" from path "D:\Program Files\PhotoLineBeta\PhotoLine.exe". Type library importer encountered a property getter 'document' on type 'PhotoLine.ImageClass' without a valid return type. The importer will attempt to import this property as a method instead. PhotoLineScriptC
I also get 24 of those same errors when opening a small C# project of my own.

Edit:
Well, I simply closed the solutions and re-opened them. Those error messages are now gone. :D
Last edited by photoken on Wed 28 Jun 2017 08:39, edited 1 time in total.
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
User avatar
photoken
Mitglied
Posts: 2162
Joined: Sat 28 Sep 2013 01:25

Problems fixed. Thanks!

Post by photoken »

The problem with setting a layer to "Clip":
http://www.pl32.com/forum3/viewtopic.ph ... =30#p42436
has been fixed.

Also, the gradient widget control seems to be working OK.
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
User avatar
photoken
Mitglied
Posts: 2162
Joined: Sat 28 Sep 2013 01:25

Scripting: Text layers

Post by photoken »

OK, now I can create the content of a text layer! :D

Am I correct in thinking that setting the paragraph alignment for the text layer (as well as font characteristics) is still to come?
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
User avatar
photoken
Mitglied
Posts: 2162
Joined: Sat 28 Sep 2013 01:25

NotProb: Text vertical alignment does not persist

Post by photoken »

Win10 1607 x64
PL 20.40b11 x64

The previously used vertical alignment for text:
text v align 2.png
does not persist between uses of the Text tool.

In other words, if I use a vertical alignment of "Middle", the next time I use the Text tool the alignment has reverted to "Top".
You do not have the required permissions to view the files attached to this post.
Last edited by photoken on Thu 29 Jun 2017 22:40, edited 1 time in total.
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Martin Huber
Entwickler
Entwickler
Posts: 3942
Joined: Tue 19 Nov 2002 15:49

Re: Scripting: Text layers

Post by Martin Huber »

photoken wrote: Wed 28 Jun 2017 10:12 OK, now I can create the content of a text layer! :D

Am I correct in thinking that setting the paragraph alignment for the text layer (as well as font characteristics) is still to come?
Well, in fact the interface is complete. You can do everything except creating layers embedded in text, but it is hard to use without documentation.
There are 4 sample scripts in the beta (all of them starting with "Text"), that demonstrate using the interface.
The "TextNewWithPageNumber" sample creates a text layer containing a page number and centers that page number.

Martin
User avatar
photoken
Mitglied
Posts: 2162
Joined: Sat 28 Sep 2013 01:25

Re: Scripting: Text layers

Post by photoken »

Martin Huber wrote: Wed 28 Jun 2017 10:35 There are 4 sample scripts in the beta (all of them starting with "Text"), that demonstrate using the interface.
I don't have any scripts starting with "Text" in the Automation folder. :?:
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Martin Huber
Entwickler
Entwickler
Posts: 3942
Joined: Tue 19 Nov 2002 15:49

Re: Prob: Text vertical alignment does not persist

Post by Martin Huber »

photoken wrote: Wed 28 Jun 2017 10:31In other words, if I use a vertical alignment of "Middle", the next time I use the Text tool the alignment has reverted to "Top".
I am not sure whether it is a good idea to save this setting. It is not often used, and if saved, seldom used settings tend to produce "suddenly PhotoLine is behaving strange" complaints, in this case "all of a sudden PhotoLine is only creating vertical centered text".

Martin
Martin Huber
Entwickler
Entwickler
Posts: 3942
Joined: Tue 19 Nov 2002 15:49

Re: Scripting: Text layers

Post by Martin Huber »

photoken wrote: Wed 28 Jun 2017 10:41
Martin Huber wrote: Wed 28 Jun 2017 10:35 There are 4 sample scripts in the beta (all of them starting with "Text"), that demonstrate using the interface.
I don't have any scripts starting with "Text" in the Automation folder. :?:
Attached.

Martin
TextStylesDoubleFontSize.zip
You do not have the required permissions to view the files attached to this post.
User avatar
photoken
Mitglied
Posts: 2162
Joined: Sat 28 Sep 2013 01:25

Re: Prob: Text vertical alignment does not persist

Post by photoken »

Martin Huber wrote: Wed 28 Jun 2017 10:42
photoken wrote: Wed 28 Jun 2017 10:31In other words, if I use a vertical alignment of "Middle", the next time I use the Text tool the alignment has reverted to "Top".
I am not sure whether it is a good idea to save this setting. It is not often used, and if saved, seldom used settings tend to produce "suddenly PhotoLine is behaving strange" complaints, in this case "all of a sudden PhotoLine is only creating vertical centered text".
I mentioned this because I don't yet understand how to script that attribute, so I'm relying on my last used settings for the Text tool when running my little test C# Add-In.
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
User avatar
photoken
Mitglied
Posts: 2162
Joined: Sat 28 Sep 2013 01:25

Re: Neue Testversion 20.40b11

Post by photoken »

Thanks for the Text scripts.

Unfortunately, VBS and I do not get along at all, but after a good night's sleep I'll work on it.
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Martin Huber
Entwickler
Entwickler
Posts: 3942
Joined: Tue 19 Nov 2002 15:49

Re: Prob: Text vertical alignment does not persist

Post by Martin Huber »

photoken wrote: Wed 28 Jun 2017 10:47 I mentioned this because I don't yet understand how to script that attribute, (...)
This is missing. I will add it.

Martin
User avatar
photoken
Mitglied
Posts: 2162
Joined: Sat 28 Sep 2013 01:25

Re: Scripting: Text layers

Post by photoken »

Martin Huber wrote: Wed 28 Jun 2017 10:35 The "TextNewWithPageNumber" sample creates a text layer containing a page number and centers that page number.
In that "TextNewWithPageNumber" script, what is that "range" object?

Code: Select all

...
Dim range(1)
...
		range(1) = textLayer.TextLength
		textLayer.SetAttribute range, "Color", Array(0, 0, 0)
		textLayer.SetAttribute range, "Paragraph", paragraphAttribute

If I can define that "range" as a strongly typed object in C#, I think I can figure out how to apply the paragraph attributes.
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Martin Huber
Entwickler
Entwickler
Posts: 3942
Joined: Tue 19 Nov 2002 15:49

Re: Scripting: Text layers

Post by Martin Huber »

photoken wrote: Thu 29 Jun 2017 04:34 In that "TextNewWithPageNumber" script, what is that "range" object?

Code: Select all

...
Dim range(1)
...
		range(1) = textLayer.TextLength
		textLayer.SetAttribute range, "Color", Array(0, 0, 0)
		textLayer.SetAttribute range, "Paragraph", paragraphAttribute

If I can define that "range" as a strongly typed object in C#, I think I can figure out how to apply the paragraph attributes.
range is a 32 bit integer array with two elements, defining a character range. Index 0 is the position, index 1 is the count.

Martin