you are calling command="jts1(),jts2()" and in jts1 your deleting the cube1
#mc.delete ('cube1')
so comment mc.delete ('cube1') in line 84 and replace all cmds with mc too
:P
cmds.group( em=True, name='pcube_grp' )
cmds.joint (n='jtcube1')
cmds.delete( cmds.parentConstraint("cube1",
"jtcube1"))
coz ur importing maya.cmds as mc not cmds
hope it will help
On Wed, Jan 6, 2010 at 10:46 PM, Paul Molodowitch <[email protected]>wrote:
> How do I recognize the script that plane1 was deleted manually without
>> the error occurs?
>>
>
> Is your question just how to check if an object exists? If so, you just do:
>
> if cmds.objExists('plane1'):
> # do stuff if it exists
>
> If not, could you clarify your question a bit more?
>
> - Paul
>
> --
> http://groups.google.com/group/python_inside_maya
>
--
സ്നേഹിക്കയില്ല ഞാന്
നോവുമാത്മാവിനെ സ്നേഹിച്ചിടാത്തൊരു
തത്വശാസ്ത്രത്തെയും -- വയലാര്
"തെറ്റു ചെയ്യുന്നവന് മനുഷ്യനാണു്; അതിനെക്കുറിച്ചോര്ത്തു ദു:ഖിക്കുന്നവന്
മഹര്ഷിയാണു്; എന്നാല് അതില് അഭിമാനം കൊള്ളുന്നവന് പിശാചാണു്." - തോമസ്
മുള്ളര്
--
http://groups.google.com/group/python_inside_maya