Neue Testversion 22.40b9

Hier diskutieren die Betatester von PhotoLine untereinander und mit den Entwicklern
Martin Huber
Entwickler
Entwickler
Posts: 3653
Joined: Tue 19 Nov 2002 15:49

Re: Neue Testversion 22.40b9

Post by Martin Huber » Sat 18 Jul 2020 15:20

russellcottrell wrote:
Fri 17 Jul 2020 19:40
Hello; creating the data based document works, but I can't figure out how to return to a previous document. What I need to do is copy the new document then paste it into another. If I do

var doc = pl.ActiveDocument;

then create a new document and copy it, this does not seem to work:

pl.ActiveDocument = doc;
I don't really understand your problem. The following works fine for me:

Code: Select all

Dim pl
Dim sourceDocument
Dim destinationDocument

Set pl = CreateObject("PhotoLine.Application")

pl.Visible = TRUE
Set destinationDocument = pl.ActiveDocument
If (Not destinationDocument Is Nothing) Then
	Set sourceDocument = pl.Open("data based file", "Data",
	"iVBORw0KhEUgAAAGQAAABkCAAAAABVicqIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAK" & _
	(...data omitted...), "Visible", FALSE)
	If (Not sourceDocument Is Nothing) Then
		' If there is only one layer in the source document, copy that layer,
		' else copy the whole root group.
		' Note:
		' - sourceDocument and destinationDocument are different, therefore
		'   a copy will be inserted.
		' - -1 as destination position means "insert at the and of the group"
		If (sourceDocument.RootLayer.Count = 1) Then
			destinationDocument.RootLayer.Insert sourceDocument.RootLayer(0), -1
		Else
			destinationDocument.RootLayer.Insert sourceDocument.RootLayer, -1
		End If
		' 1: Close option CODontSave
		sourceDocument.Close(1)
	End If
End If
Martin

User avatar
russellcottrell
Mitglied
Posts: 175
Joined: Sat 26 Jul 2014 10:13

Re: Neue Testversion 22.40b9

Post by russellcottrell » Sat 18 Jul 2020 18:41

That seems to be an easier way to do it. I was trying to manually get back to the original document. Just out of curiosity, is it not possible to set the active document?

User avatar
shijan
Mitglied
Posts: 357
Joined: Mon 23 Dec 2019 15:21

Re: Neue Testversion 22.40b9

Post by shijan » Sat 18 Jul 2020 22:15

It seems Little CMS color transforms don't support 32 bit depth. Not sure if it related to PhotoLine or to Little CMS itself. Here is side by side test based on ACES to LAB transform described earlier here https://www.pl32.com/forum3/viewtopic.p ... 854#p47854:

Apple Color Management 32 bit ACES to LAB to sRGB:
Image

Little CMS (turned ON in PhotoLine preferences) 32 bit ACES to LAB to sRGB:
Image

Example PLD file (turn on or off Little CMS in preferences, restart PhotoLine and see difference) https://www.dropbox.com/s/zon5vvr4vk8x0 ... d.zip?dl=0
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302

User avatar
Gerhard Huber
Entwickler
Entwickler
Posts: 3800
Joined: Mon 18 Nov 2002 15:30
Location: Bad Gögging

Re: Neue Testversion 22.40b9

Post by Gerhard Huber » Wed 22 Jul 2020 13:13

Für alle, die sich schon einen macOS Rechner mit ARM-Prozessor besorgt haben, haben wir jetzt auch die erste Version von PhotoLine, die darauf nativ läuft:
http://www.pl32.com/beta/plx2240b9u.zip

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

Re: Neue Testversion 22.40b9

Post by Martin Huber » Thu 23 Jul 2020 08:51

russellcottrell wrote:
Sat 18 Jul 2020 18:41
That seems to be an easier way to do it. I was trying to manually get back to the original document. Just out of curiosity, is it not possible to set the active document?
You are right, that setting the active document doesn't work correctly. I will check that.

Martin

User avatar
shijan
Mitglied
Posts: 357
Joined: Mon 23 Dec 2019 15:21

Re: Neue Testversion 22.40b9

Post by shijan » Fri 24 Jul 2020 04:32

Seems a little problem with Rectangle lasso guides. I can't switch Guides modes.
Guides in Crop tool works well.
Also i notice that guides icons are slightly blurred in Crop tool. Seems you forgot to adjust icons size there:
Image
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302

User avatar
shijan
Mitglied
Posts: 357
Joined: Mon 23 Dec 2019 15:21

Re: Neue Testversion 22.40b9

Post by shijan » Fri 24 Jul 2020 22:01

I notice that if i duplicate Placeholder layer that contains external linked file, it is no more use external file, but copy file internally inside document. As a result - increased document size on save.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302