When you say that
- Code: Select all
scriptUtil.getObjects()
returned 'nothing', you mean you got the message that says "No images found" ?
You can see the code here:
https://github.com/openmicroscopy/openm ... ls.py#L349This is simply a wrapper around conn.getObjects() that gives a nice message that is used by most of our scripts.
The script should be run in the permissions/group context that you called it from the client.
Try adding these lines to your script, then check the stdout "info" from the script.
- Code: Select all
print conn.getGroupFromContext().getName()
print conn.getEventContext()
Is this the group that the image is in, or can you at least see the image when logged in to that group?
Is this the group that you're running the script from?
Did you run the script from Insight or web? In insight it is possible to run a script from one 'group context' even though the image is in a different group, although if you have the image selected when you run the script then it should run the script under the correct context.