Neue Testversion 20.40b11
-
- Entwickler
- Posts: 4174
- Joined: Mon 18 Nov 2002 15:30
- Location: Bad Gögging
Neue Testversion 20.40b11
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
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
-
- Entwickler
- Posts: 4174
- Joined: Mon 18 Nov 2002 15:30
- Location: Bad Gögging
Re: Neue Testversion 20.40b11
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.
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.
-
- Mitglied
- Posts: 2162
- Joined: Sat 28 Sep 2013 01:25
No VS error: COM reference
Thanks for posting the new ScriptC VS project.
When I opened that project in VS2017, I get 24 of these errors:
Edit:
Well, I simply closed the solutions and re-opened them. Those error messages are now gone.
When I opened that project in VS2017, I get 24 of these errors:
I also get 24 of those same errors when opening a small C# project of my own.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
Edit:
Well, I simply closed the solutions and re-opened them. Those error messages are now gone.
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.
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
-
- Mitglied
- Posts: 2162
- Joined: Sat 28 Sep 2013 01:25
Problems fixed. Thanks!
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.
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.
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
-
- Mitglied
- Posts: 2162
- Joined: Sat 28 Sep 2013 01:25
Scripting: Text layers
OK, now I can create the content of a text layer!
Am I correct in thinking that setting the paragraph alignment for the text layer (as well as font characteristics) is still to come?
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.
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
-
- Mitglied
- Posts: 2162
- Joined: Sat 28 Sep 2013 01:25
NotProb: Text vertical alignment does not persist
Win10 1607 x64
PL 20.40b11 x64
The previously used vertical alignment for text: 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".
PL 20.40b11 x64
The previously used vertical alignment for text: 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.
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
-
- Entwickler
- Posts: 4208
- Joined: Tue 19 Nov 2002 15:49
Re: Scripting: Text layers
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
-
- Mitglied
- Posts: 2162
- Joined: Sat 28 Sep 2013 01:25
Re: Scripting: Text layers
I don't have any scripts starting with "Text" in the Automation folder.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.
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
-
- Entwickler
- Posts: 4208
- Joined: Tue 19 Nov 2002 15:49
Re: Prob: Text vertical alignment does not persist
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
-
- Entwickler
- Posts: 4208
- Joined: Tue 19 Nov 2002 15:49
Re: Scripting: Text layers
Attached.photoken wrote: ↑Wed 28 Jun 2017 10:41I don't have any scripts starting with "Text" in the Automation folder.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.
Martin
You do not have the required permissions to view the files attached to this post.
-
- Mitglied
- Posts: 2162
- Joined: Sat 28 Sep 2013 01:25
Re: Prob: Text vertical alignment does not persist
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.Martin Huber wrote: ↑Wed 28 Jun 2017 10:42I 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".
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
-
- Mitglied
- Posts: 2162
- Joined: Sat 28 Sep 2013 01:25
Re: Neue Testversion 20.40b11
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.
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.
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
-
- Entwickler
- Posts: 4208
- Joined: Tue 19 Nov 2002 15:49
-
- Mitglied
- Posts: 2162
- Joined: Sat 28 Sep 2013 01:25
Re: Scripting: Text layers
In that "TextNewWithPageNumber" script, what is that "range" object?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.
Code: Select all
...
Dim range(1)
...
range(1) = textLayer.TextLength
textLayer.SetAttribute range, "Color", Array(0, 0, 0)
textLayer.SetAttribute range, "Paragraph", paragraphAttribute
Ken
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
Yes, I think it can be eeeeeasily done....
Just take everything out on Highway 61.
-
- Entwickler
- Posts: 4208
- Joined: Tue 19 Nov 2002 15:49
Re: Scripting: Text layers
range is a 32 bit integer array with two elements, defining a character range. Index 0 is the position, index 1 is the count.photoken wrote: ↑Thu 29 Jun 2017 04:34 In that "TextNewWithPageNumber" script, what is that "range" object?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.Code: Select all
... Dim range(1) ... range(1) = textLayer.TextLength textLayer.SetAttribute range, "Color", Array(0, 0, 0) textLayer.SetAttribute range, "Paragraph", paragraphAttribute
Martin