Re: Vectors must have length 2 or 3

Bruce Sherwood <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <CAFDG03gzDDvnqjUp781ieDoAxy2xZBygHG2GKpUH22vMPXTVfw@mail.gmail.com>
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
<[email protected]> 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
> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.