Re: detmining name during an assignment

2009-09-19 Thread Jerry Hill
On Fri, Sep 18, 2009 at 6:57 PM, Jamie Riotto wrote: > However, I'll have to keep looking for a more elegant solution. > Telling a user that typing: > cube1 = Cube(name = cube1) is a good thing because its pythonic is > somehow unsatisfying. That isn't pythonic. The usual pythonic way to map nam

Re: detmining name during an assignment

2009-09-18 Thread Jamie Riotto
On Fri, Sep 18, 2009 at 1:10 PM, Gabriel Genellina wrote: > En Fri, 18 Sep 2009 14:38:08 -0300, Christian Heimes > escribió: >> >> Jamie Riotto schrieb: > >>> I have an app that uses Python scripting. When a user creates a new >>> object: >>> >>> objName = newObject() >>> >>> I'd like the newObje

Re: detmining name during an assignment

2009-09-18 Thread Gabriel Genellina
En Fri, 18 Sep 2009 14:38:08 -0300, Christian Heimes escribió: Jamie Riotto schrieb: I have an app that uses Python scripting. When a user creates a new object: objName = newObject() I'd like the newObject be able to use objName as its internal name. As the others already explained to

Re: detmining name during an assignment

2009-09-18 Thread Ishwor
Jamie, Hi. > I have an app that uses Python scripting. When a user creates a new object: > > objName = newObject() newObject should technically speaking be newClass() but nevermind :-) > I'd like the newObject be able to use objName as its internal name. > So, if a user says: > > cube1 = Cube()

Re: detmining name during an assignment

2009-09-18 Thread Christian Heimes
Jamie Riotto schrieb: > I have an app that uses Python scripting. When a user creates a new object: > > objName = newObject() > > I'd like the newObject be able to use objName as its internal name. > So, if a user says: > > cube1 = Cube() > > A "cube1" object should apear in the scene list. I

Re: detmining name during an assignment

2009-09-18 Thread Simon Forman
On Sep 18, 1:00 pm, Jamie Riotto wrote: > I have an app that uses Python scripting. When a user creates a new object: > > objName = newObject() > > I'd like the newObject be able to use objName as its internal name. > So, if a user says: > > cube1 = Cube() > >  A "cube1" object should apear in the

Re: detmining name during an assignment

2009-09-18 Thread Stephen Hansen
On Fri, Sep 18, 2009 at 10:00 AM, Jamie Riotto wrote: > I have an app that uses Python scripting. When a user creates a new object: > > objName = newObject() > > I'd like the newObject be able to use objName as its internal name. > Almost this exact same question came up not so long ago, which is

detmining name during an assignment

2009-09-18 Thread Jamie Riotto
I have an app that uses Python scripting. When a user creates a new object: objName = newObject() I'd like the newObject be able to use objName as its internal name. So, if a user says: cube1 = Cube() A "cube1" object should apear in the scene list. I believe this means I need to determine tha