Re: detmining name during an assignment

2009-09-19 Thread Jerry Hill
On Fri, Sep 18, 2009 at 6:57 PM, Jamie Riotto jamie.rio...@gmail.com 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

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 that

Re: detmining name during an assignment

2009-09-18 Thread Stephen Hansen
On Fri, Sep 18, 2009 at 10:00 AM, Jamie Riotto jamie.rio...@gmail.comwrote: 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

Re: detmining name during an assignment

2009-09-18 Thread Simon Forman
On Sep 18, 1:00 pm, Jamie Riotto jamie.rio...@gmail.com 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

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 believe

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()  A

Re: detmining name during an assignment

2009-09-18 Thread Gabriel Genellina
En Fri, 18 Sep 2009 14:38:08 -0300, Christian Heimes li...@cheimes.de 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

Re: detmining name during an assignment

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