From: Bruce S. <Bru...@nc...> - 2011-09-01 03:46:37
|
I don't see how that could ever have worked. The origin assignment is attempting to add a vector varGVMapper.CurrentObject.pos, which I assume is a vector, to a tuple. It is true that you could say origin = (0,1.8,0), in which case VPython silently converts the tuple to a vector, but it won't convert the tuple when added to a vector. The error message isn't helpful, though.... Bruce Sherwood On Wed, Aug 31, 2011 at 10:30 PM, Roberto Aguirre Maturana <rha...@ho...> wrote: > Hi, > > I'm returning to a project I haven't worked on since version 3 of VPython. > Back in the days, the following line of code > > self.frameScale.rotate (angle = pi/2., axis = (1.0, 0.0, 0.0), origin = > (varGVMapper.CurrentObject.pos + (0,1.8,0))) > > used to work just fine. However, with the latest version of VPython it > raises the following error: > > ValueError: Vectors must have length 2 or 3 > > What seems to be the problem? > > Best regards, > Roberto Aguirre Maturana. > > > -- > Using Opera's revolutionary email client: http://www.opera.com/mail/ > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |