Hi Vitor,
It is not possible to have an obj to have the same name as another
even if they are of the different geo shape.
Only 1 name at a level of hierarchy.
On Jan 12, 1:15 am, Vitor Lôbo Ramos <[email protected]>
wrote:
> But, using the return value, not is possible create another geometrie
> with the same name as the "ball"? or it's impossible?
>
> know it is possible names equal in different groups ...
>
> On Jan 11, 1:23 pm, Kurian O.S ™ ® <[email protected]> wrote:
>
>
>
> > Sorry I understood in wrong way ...
>
> > import maya.cmds as cmds
> > def test():
> > if cmds.objExists('ball'):
> > cmds.delete('ball')
> > createBall()
> > else:
> > createBall()
>
> > def createBall():
> > getCreated=cmds.sphere(n='ball')
> > print getCreated
> > test()
>
> > 2010/1/11 Kurian O.S ™ ® <[email protected]>
>
> > > def test():
>
> > > getCreated=cmds.sphere(n='ball')
> > > print getCreated
> > > test()
>
> > > like this ????
>
> > > 2010/1/11 Vitor Lôbo Ramos <[email protected]>
>
> > >> def test():
>
> > >> cmds.sphere(n='ball')
>
> > >> #END
>
> > >> If I run the same script twice, the name 'ball', will ball1, ball2,
> > >> ball3 etc ...
>
> > >> How do I return to the original name "ball" if you run it more than
> > >> once?
>
> > >> --
> > >>http://groups.google.com/group/python_inside_maya
>
> > > --
> > > സ്നേഹിക്കയില്ല ഞാന്
> > > നോവുമാത്മാവിനെ സ്നേഹിച്ചിടാത്തൊരു
> > > തത്വശാസ്ത്രത്തെയും -- വയലാര്
>
> > > "തെറ്റു ചെയ്യുന്നവന് മനുഷ്യനാണു്; അതിനെക്കുറിച്ചോര്ത്തു
> > > ദു:ഖിക്കുന്നവന്
> > > മഹര്ഷിയാണു്; എന്നാല് അതില് അഭിമാനം കൊള്ളുന്നവന് പിശാചാണു്." - തോമസ്
> > > മുള്ളര്
>
> > --
> > സ്നേഹിക്കയില്ല ഞാന്
> > നോവുമാത്മാവിനെ സ്നേഹിച്ചിടാത്തൊരു
> > തത്വശാസ്ത്രത്തെയും -- വയലാര്
>
> > "തെറ്റു ചെയ്യുന്നവന് മനുഷ്യനാണു്; അതിനെക്കുറിച്ചോര്ത്തു ദു:ഖിക്കുന്നവന്
> > മഹര്ഷിയാണു്; എന്നാല് അതില് അഭിമാനം കൊള്ളുന്നവന് പിശാചാണു്." - തോമസ്
> > മുള്ളര്--
http://groups.google.com/group/python_inside_maya