is not possible have same object name in the same level group
you have to delete the old object . or rename it .. or choose a new name for a new objects ! 2010/1/11 Richard Kazuo <[email protected]> > It is possible to create objects with the same name under different > namespaces (or groups, if you want). > > Like: > > *group1 > \- ball1 > > group2 > \- ball1 > > group3 > \- ball1* > > Just use the command: > *cmds.group( cmds.sphere(n='ball1') )* > > > But why would you want to do that? > > Richard > > > > 2010/1/11 Vitor Lôbo Ramos <[email protected]> > > 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 >> > > > -- > http://groups.google.com/group/python_inside_maya >
-- http://groups.google.com/group/python_inside_maya
