Neue Testversion 21.40b6

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 21.40b6

Beitrag von Martin Huber »

PhilM hat geschrieben: So 09 Dez 2018 12:38 Error message box is sometime too small to read the entire message
I will check that.

Martin
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Neue Testversion 21.40b6

Beitrag von PhilM »

Martin Huber wrote :
doc.Paste doesn't take any parameters. It will always insert after the active layer.
doc.Paste should have at least an option to paste a virtual copy.
Or there should be an other method like "doc.PasteVirtual" without option ?

Philippe
Martin Huber
Entwickler
Entwickler
Beiträge: 4176
Registriert: Di 19 Nov 2002 15:49

Re: Neue Testversion 21.40b6

Beitrag von Martin Huber »

PhilM hat geschrieben: Do 13 Dez 2018 10:17
Martin Huber wrote :
doc.Paste doesn't take any parameters. It will always insert after the active layer.
doc.Paste should have at least an option to paste a virtual copy.
Or there should be an other method like "doc.PasteVirtual" without option ?
You can do that with PhotoLine.Page's DuplicateVirtual().

Martin
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Neue Testversion 21.40b6

Beitrag von PhilM »

Martin Huber hat geschrieben: Do 13 Dez 2018 16:29
PhilM hat geschrieben: Do 13 Dez 2018 10:17
Martin Huber wrote :
doc.Paste doesn't take any parameters. It will always insert after the active layer.
doc.Paste should have at least an option to paste a virtual copy.
Or there should be an other method like "doc.PasteVirtual" without option ?
You can do that with PhotoLine.Page's DuplicateVirtual().

Martin
In the VBScript manual (odt) delivered with 21.40b6, Page does not have a DuplicateVirtual() method.
Layer has a DuplicateVirtual
Did you mean Layer ?

Could you put an up-to-date pdf of the script manual somewhere on the forum ?

Regards

Philippe
Martin Huber
Entwickler
Entwickler
Beiträge: 4176
Registriert: Di 19 Nov 2002 15:49

Re: Neue Testversion 21.40b6

Beitrag von Martin Huber »

PhilM hat geschrieben: Do 13 Dez 2018 22:18In the VBScript manual (odt) delivered with 21.40b6, Page does not have a DuplicateVirtual() method.
Layer has a DuplicateVirtual
Did you mean Layer ?
Yes, of course, I did mean that.
PhilM hat geschrieben: Do 13 Dez 2018 22:18Could you put an up-to-date pdf of the script manual somewhere on the forum ?
If it contains the Paste documentation, then it is up to date.
The latest beta should always contain the latest documentation.

Martin
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Neue Testversion 21.40b6

Beitrag von PhilM »

Martin Huber hat geschrieben: Do 13 Dez 2018 22:26
PhilM hat geschrieben: Do 13 Dez 2018 22:18Could you put an up-to-date pdf of the script manual somewhere on the forum ?
If it contains the Paste documentation, then it is up to date.
The latest beta should always contain the latest documentation.

Martin
Yes, it does contain a fresh version of the Open Office manual.
But the hyperlinks inside the document do not work when opened with MS Office.
It would be nice to include the relative pdf version also.

Thanks

Philippe
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Neue Testversion 21.40b6

Beitrag von PhilM »

Group

I tried to create a new empty group with :
Set grp = CreateObject("PhotoLine.Group")

It generates an error

Is there a way to do it ?
And later on, to populate the group with new layers.

Philippe
Benutzeravatar
russellcottrell
Mitglied
Beiträge: 251
Registriert: Sa 26 Jul 2014 10:13
Wohnort: California

Re: Neue Testversion 21.40b6

Beitrag von russellcottrell »

I found this out by trial and error; the default layer seems to be a group:

Code: Alles auswählen

var pl = new ActiveXObject("PhotoLine.Application");
var doc = pl.ActiveDocument;
var gLayer = new ActiveXObject("PhotoLine.Layer");
doc.RootLayer.Insert(gLayer, -1);
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Neue Testversion 21.40b6

Beitrag von PhilM »

russellcottrell hat geschrieben: Fr 14 Dez 2018 18:14 I found this out by trial and error; the default layer seems to be a group:

Code: Alles auswählen

var pl = new ActiveXObject("PhotoLine.Application");
var doc = pl.ActiveDocument;
var gLayer = new ActiveXObject("PhotoLine.Layer");
doc.RootLayer.Insert(gLayer, -1);
Yes, it does work
In VBScript :

Code: Alles auswählen

...
Set grp = CreateObject("PhotoLine.Layer")
doc.RootLayer.Insert grp, -1
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Neue Testversion 21.40b6

Beitrag von PhilM »

Help needed !

I am working on a multi-page document.

I can't find how to move from page to page : Next/Previous, First/Last or to move to a specific page number.

The only piece of script I found is :
Dim page
Set page = doc.ActivePage

But that does not bring me very far ...

Thanks

Philippe
Benutzeravatar
russellcottrell
Mitglied
Beiträge: 251
Registriert: Sa 26 Jul 2014 10:13
Wohnort: California

Re: Neue Testversion 21.40b6

Beitrag von russellcottrell »

On a related note, in browsers you can list all the properties of an object like this:

Code: Alles auswählen

var objShell = new ActiveXObject("WScript.Shell");
for (var propertyName in doc)
  objShell.Popup(propertyName);
But it doesn’t do anything in PhotoLine.
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Neue Testversion 21.40b6

Beitrag von PhilM »

russellcottrell hat geschrieben: So 16 Dez 2018 18:14 On a related note, in browsers you can list all the properties of an object like this:

Code: Alles auswählen

var objShell = new ActiveXObject("WScript.Shell");
for (var propertyName in doc)
  objShell.Popup(propertyName);
But it doesn’t do anything in PhotoLine.
Not familiar with js
I converted it in VBScript
And got a Type error with the objShell.Popup
Can you solve it ?

Code: Alles auswählen

Dim pl, doc
Set pl = CreateObject("PhotoLine.Application")
Set doc = pl.ActiveDocument
pl.Visible = True

Dim objShell
Set objShell = CreateObject("WScript.Shell")
Dim propertyName
for Each propertyName in doc
	objShell.Popup propertyName
Next
Benutzeravatar
russellcottrell
Mitglied
Beiträge: 251
Registriert: Sa 26 Jul 2014 10:13
Wohnort: California

Re: Neue Testversion 21.40b6

Beitrag von russellcottrell »

WScript.Shell is for javascript. In vbscript, just do

Code: Alles auswählen

for Each propertyName in doc
	MsgBox propertyName
PhilM
Mitglied
Beiträge: 171
Registriert: Do 28 Mai 2015 18:00
Wohnort: Belgium

Re: Neue Testversion 21.40b6

Beitrag von PhilM »

russellcottrell hat geschrieben: So 16 Dez 2018 22:07 WScript.Shell is for javascript. In vbscript, just do

Code: Alles auswählen

for Each propertyName in doc
	MsgBox propertyName
Same
It looks like propertyName is not text
Martin Huber
Entwickler
Entwickler
Beiträge: 4176
Registriert: Di 19 Nov 2002 15:49

Re: Neue Testversion 21.40b6

Beitrag von Martin Huber »

PhilM hat geschrieben: So 16 Dez 2018 10:58I am working on a multi-page document.

I can't find how to move from page to page : Next/Previous, First/Last or to move to a specific page number.
You can do

Code: Alles auswählen

For Each page In doc
    (...)
Next
Martin