Published object in TUI scripts

Hi,
I would like to know if there is a way to check in a TUI script whether an object has been published (with addToStudy) or not?

Best
C

hello,
for the exact porpous of what you are asking for, it would be:
pythonObject.GetStudyEntry()
if it is an empty string, it means that it has not been published with addToStudy (nor addToStudyInFather)