From: Gavrie P. <ga...@ne...> - 2000-11-16 12:48:41
|
Hi, I needed a feature in VPython that would let me limit the amount that the user can zoom in with the mouse. After not finding a way of doing this, I have written a small patch to enable it. The patch adds a new attribute to "display" objects. The attribute is named "zoom_limit", and is a float value. In Python, you can now say: visual.scene.zoom_limit = 10.0, for example. The patch is attached. If others find it useful, maybe it can be added to the CVS? Gavrie. -- Gavrie Philipson Netmor Applied Modeling Research Ltd. |