Read all documents in ZEN Core

In this subforum specific Topics concerning ZEN Core, e.g workbenches, are discussed
Post Reply
Albert Mo
Posts: 1
Joined: Thu Mar 04, 2021 3:22 pm

Read all documents in ZEN Core

Post by Albert Mo »

Hi,

The value of Zen.Application.Documents.Count is always 0 in ZEN Core.

After opened several images, when I run the following code

Code: Select all

i = Zen.Application.Documents.Count
image = Zen.Applicaiton.Activeworkbench.GetDefaultInputValue()
print(image.FileName)
print(i)
File name is correct, while i = 0.
CarlZeissMicroscopy3
Posts: 180
Joined: Wed May 20, 2020 10:10 am

Re: Read all documents in ZEN Core

Post by CarlZeissMicroscopy3 »

The value of Zen.Application.Documents.Count is always 0 in ZEN Core.
Yes, the Zen.Application.Documents-Collection does not exist in Zen Core.
In other words, there is no equivalent to the Zen.Application.Documents-Collection of Zen blue in Zen Core as Zen Core has another philosophy and does not address the Zen.Application.Documents-Collection.

Newer versions of Zen Core should not offer IntelliSense for Zen.Application.Documents.

In 'free-mode' you can use
image = Zen.Application.ActiveDocument
to address the active image.
Post Reply