Specifying the uv range of a texture

I have a texture that is a collection of ‘sprites’. I have a model that I would like to change it’s texture to one of the sprites based upon user input. I’m already doing something similar with some texture cards, but I’m not sure how to create a texture that is just one of the sprites. (i.e. how do I specify the uv range of a texture?)

If it helps, this is what I’m doing with the CardMaker:

self.node = render.attachNewNode('Particle')
cm = CardMaker('ParticleCard')
cm.setUvRange(Point2(texCoordU[0], texCoordV[0]), Point2(texCoordU[1], texCoordV[1]))
card = self.node.attachNewNode(cm.generate())

where u = [0.1, 0.2] and v = [0.3, 0.4]

UV coordinates are a property of geometry, not textures. You can set the UV range of your geometry to reference a subset of the texture (try model.setTexScale() and model.setTexPos()). But you can’t make a texture that is just part of an image, unless you copy the pixels you want into a separate image first.

David