Neue Testversion 20.40b11

Hier diskutieren die Betatester von PhotoLine untereinander und mit den Entwicklern
Benutzeravatar
Gerhard Huber
Entwickler
Entwickler
Beiträge: 4143
Registriert: Mo 18 Nov 2002 15:30
Wohnort: Bad Gögging

Neue Testversion 20.40b11

Beitrag von 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
Benutzeravatar
Gerhard Huber
Entwickler
Entwickler
Beiträge: 4143
Registriert: Mo 18 Nov 2002 15:30
Wohnort: Bad Gögging

Re: Neue Testversion 20.40b11

Beitrag von 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.
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

No VS error: COM reference

Beitrag von 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
Zuletzt geändert von photoken am Mi 28 Jun 2017 08:39, insgesamt 1-mal geändert.
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

Problems fixed. Thanks!

Beitrag von 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.
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

Scripting: Text layers

Beitrag von 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.
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

NotProb: Text vertical alignment does not persist

Beitrag von 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".
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von photoken am Do 29 Jun 2017 22:40, insgesamt 1-mal geändert.
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Martin Huber
Entwickler
Entwickler
Beiträge: 4159
Registriert: Di 19 Nov 2002 15:49

Re: Scripting: Text layers

Beitrag von Martin Huber »

photoken hat geschrieben: Mi 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
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

Re: Scripting: Text layers

Beitrag von photoken »

Martin Huber hat geschrieben: Mi 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
Beiträge: 4159
Registriert: Di 19 Nov 2002 15:49

Re: Prob: Text vertical alignment does not persist

Beitrag von Martin Huber »

photoken hat geschrieben: Mi 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
Beiträge: 4159
Registriert: Di 19 Nov 2002 15:49

Re: Scripting: Text layers

Beitrag von Martin Huber »

photoken hat geschrieben: Mi 28 Jun 2017 10:41
Martin Huber hat geschrieben: Mi 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
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

Re: Prob: Text vertical alignment does not persist

Beitrag von photoken »

Martin Huber hat geschrieben: Mi 28 Jun 2017 10:42
photoken hat geschrieben: Mi 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.
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

Re: Neue Testversion 20.40b11

Beitrag von 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
Beiträge: 4159
Registriert: Di 19 Nov 2002 15:49

Re: Prob: Text vertical alignment does not persist

Beitrag von Martin Huber »

photoken hat geschrieben: Mi 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
Benutzeravatar
photoken
Mitglied
Beiträge: 2162
Registriert: Sa 28 Sep 2013 01:25

Re: Scripting: Text layers

Beitrag von photoken »

Martin Huber hat geschrieben: Mi 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: Alles auswählen

...
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
Beiträge: 4159
Registriert: Di 19 Nov 2002 15:49

Re: Scripting: Text layers

Beitrag von Martin Huber »

photoken hat geschrieben: Do 29 Jun 2017 04:34 In that "TextNewWithPageNumber" script, what is that "range" object?

Code: Alles auswählen

...
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