Neue Testversion 22.40b9

Hier diskutieren die Betatester von PhotoLine untereinander und mit den Entwicklern
Martin Huber
Entwickler
Entwickler
Beiträge: 4176
Registriert: Di 19 Nov 2002 15:49

Re: Neue Testversion 22.40b9

Beitrag von Martin Huber »

russellcottrell hat geschrieben: Fr 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: Alles auswählen

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
Benutzeravatar
russellcottrell
Mitglied
Beiträge: 251
Registriert: Sa 26 Jul 2014 10:13
Wohnort: California

Re: Neue Testversion 22.40b9

Beitrag von russellcottrell »

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?
Benutzeravatar
shijan
Mitglied
Beiträge: 1525
Registriert: Mo 23 Dez 2019 15:21
Wohnort: Ukraine

Re: Neue Testversion 22.40b9

Beitrag von shijan »

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:
Bild

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

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

Re: Neue Testversion 22.40b9

Beitrag von Gerhard Huber »

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

Re: Neue Testversion 22.40b9

Beitrag von Martin Huber »

russellcottrell hat geschrieben: Sa 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
Benutzeravatar
shijan
Mitglied
Beiträge: 1525
Registriert: Mo 23 Dez 2019 15:21
Wohnort: Ukraine

Re: Neue Testversion 22.40b9

Beitrag von shijan »

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:
Bild
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
Benutzeravatar
shijan
Mitglied
Beiträge: 1525
Registriert: Mo 23 Dez 2019 15:21
Wohnort: Ukraine

Re: Neue Testversion 22.40b9

Beitrag von shijan »

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