> I would like to create soya Volumes with an added property of id. > ie. > soya.Volume(world, soya.cube.Cube(None, green).shapify()).set_xyz( 0.0, > -1.0, 0.0) > > to something like > > soya.VolumeID(world. soya.cube.Cube(None, green).shapify(), id).set_xyz(0.0, > -1.0, 0.0)
I think you only need to subclass soya.Volume: .class VolumeID(soya.Volume): . def __init__(self, parent, shape, id): . soya.Volume.__init__(self, parent, shape) . self.id = id -- mvh Björn
