def newObject(self,obj): if pylon.object_new(self.name,obj) or not self.hasObject(obj): print "Cannot create object:'",obj,"' in sim:'",self.name,"'" return None return Object(obj,self.name)
def __init__(self,name,simname): self.name = name self.simname = simname if not self.check() and pylon.object_new(self.simname,self.name): print "Cannot create object:'",self.name,"' in sim:'",self.simname,"'"