Hi Justin, thanks for the response. I attached a pic, but seems it didnt 
work. 

The code I used is this:

import maya.cmds as cmds








*# create a sphere and group it, then hide the sphere and the 
group.cmds.sphere( n='sphere1' )cmds.group( n='group1' )cmds.hide( 
'group1', 'sphere1' )*It cames in the Maya Python Help. The strange thing 
is that when I execute it, It creates the sphere and groups it, but when 
using the hide command it produces an error in the console that I dont know 
what it means.

# Error: TypeError: file <maya console> line 6: 'bool' object is not 
callable # 

I hope its a little clearer as I have no clue what that error could be.

Thanks
Lean


On Monday, July 27, 2015 at 8:15:51 AM UTC-3, Leandro Giorni wrote:
>
> I just pasted from Maya python Help and example thtat hides some Objects
> The strange thing is thats it gives me an error as soon as I try it out.
> Dont understand what could be the problem as Its a code from the help.
>
> ...

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/1759cd52-556b-456e-837f-ceaf72570aa2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to