PDA

View Full Version : Jumping to a class object from one of it's components


EnvisMJ
04-25-2011, 11:22 AM
I've got a class, within it is a geometry file. Structured like so:

import viz

class someObject(object):
def __init__(self):
self.geometry = viz.add('box.ive')

newObject = someObject()

I'm selecting 'box.ive' that is part of 'newObject' with viz.pick(), but how do I jump back up to the 'newObject' that it is part of?