def set_targets(self, targets, init=False): Atom = context.application.plugins.get_node("Atom") for target in targets: if not isinstance(target, Atom): raise TrajectoryError("References of the trajectory object can only point to atoms") self.set_children([Reference(prefix="Track") for target in targets]) ReferentBase.set_targets(self, targets, init)
def initnonstate(self): ReferentBase.initnonstate(self) self.set_children( [Reference(prefix="First"), Reference(prefix="Second")])
def set_targets(self, targets, init=False): self.set_children([Reference(prefix="Selected") for target in targets]) ReferentBase.set_targets(self, targets, init)
def initnonstate(self): ReferentBase.initnonstate(self) self.set_children([ Reference(prefix="First"), Reference(prefix="Second") ])