From: kirby u. <kir...@gm...> - 2010-11-13 18:57:27
|
Thank you for your advice re scene.select(). I do not bill myself as a VPython expert and tips such as yours are a primary reason why I joined this list. For more context regarding what my class setup is like, here's a link to my Martian Math table of contents: http://www.4dsolutions.net/satacad/martianmath/toc.html (you'd find some embedded Visual code) Also, I've done a fairly sophisticated intro to rendering vs. real time computer graphics for a course I called Pythonic Math: http://www.4dsolutions.net/ocn/pymath.html (viztoyz.py was the VPython module) Kirby Urner Portland, Oregon PS: I note 'Reply to' is set to your address, not to the list. Will adjust my reflexes accordingly. 8D/4D On Sat, Nov 13, 2010 at 9:39 AM, Bruce Sherwood <bas...@nc...> wrote: > If you do get the error again, I'd appreciate seeing what is reported > in the Shell window. Thanks. > > A very minor point: Perhaps it's there for a pedagogical purpose, but > "scene.select()" isn't necessary in your program, because the way the > Visual module works is that the most recent display creation governs > where objects will go. You only need scene.select() in a situation > where you have multiple displays and you want to switch to one that is > different from the currently active one. > > Bruce > > On Sat, Nov 13, 2010 at 10:20 AM, kirby urner <kir...@gm...> > wrote: > > On Sat, Nov 13, 2010 at 8:43 AM, Bruce Sherwood <bas...@nc...> > wrote: > >> > >> This is an unfamiliar problem. Was this with Python 2.7 or 3.1? It is > >> normal that in site-packages you'll see a folder FontTools (with an > >> uppercase F), and inside that folder you'll see a folder fontTools > >> (with a lowercase f) plus some other files. You should also see in > >> site-packages a file FontTools.pth. > >> > > > > Win7 / Python 2.7 > > Oh, so that's normal. > > I thought because the inner folder with the __init__.py was that deep > that > > it wasn't found on the search path, and indeed it was not as when I tried > > to run the code posted above, it crashed for not finding some fonttools > > stuff. When I moved the subdirectly to a higher level, it worked. > > I didn't think to look at site-packages for a FontTools.pth. I should do > > some more analysis and get back to ya. > > > >> > >> Could you perhaps uninstall and reinstall VPython and then report on > >> what you see in site-packages? A test that all is working properly is > >> to run the example program text3D.py, which uses the FontTools module > >> (and others) to produce 3D text. > >> > >> Bruce Sherwood > >> > > > > Yes I will do that. Thanks for the reply. > > Kirby > > > > > ------------------------------------------------------------------------------ > > Centralized Desktop Delivery: Dell and VMware Reference Architecture > > Simplifying enterprise desktop deployment and management using > > Dell EqualLogic storage and VMware View: A highly scalable, end-to-end > > client virtualization framework. Read more! > > http://p.sf.net/sfu/dell-eql-dev2dev > > _______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > > |