Error hidding objects

40 views
Skip to first unread message

Leandro Giorni

unread,
Jul 27, 2015, 7:15:51 AM7/27/15
to Python Programming for Autodesk Maya
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.



Any tip would be really appreciated!

Thanks in advance
Lean

Justin Israel

unread,
Jul 27, 2015, 7:23:45 AM7/27/15
to Python Programming for Autodesk Maya

Hi Lean

I'm sorry but I have no idea what you are asking. It looks like you tried to include a picture but for me, at least, it doesn't show.

Can you try to ask your question a little more clearly, in greater detail? And if you have a code sample, please either include it inline if it is short, or use pastebin or gist if it is sizable. Much appreciated.

I promise if you take the time to formulate a clear question,  that you will most definitely receive a clear response.

Justin


--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/088ade29-9cf3-44cb-889c-a9234b70c829%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leandro Giorni

unread,
Jul 27, 2015, 7:38:21 AM7/27/15
to Python Programming for Autodesk Maya, lmgi...@gmail.com
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.

...

Arvid Schneider

unread,
Jul 27, 2015, 8:08:37 AM7/27/15
to python_in...@googlegroups.com, lmgi...@gmail.com
I ve just tried that. It works without any error on maya15

--
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 python_inside_m...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Arvid Schneider
Look Develpopment | Lighting TD | Show TD
www.arvidschneider.com

Mobil DE: (+49) 170 321 0074
Mobile UK: (+44) 744 824 6973

Leandro Giorni

unread,
Jul 27, 2015, 5:22:58 PM7/27/15
to Python Programming for Autodesk Maya, lmgi...@gmail.com
Its true, in 2014 it works perfectly.

Maybe I have something wrong with my Maya instalation or something messed up.

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.

...

Daniel Lindsey

unread,
Jul 29, 2015, 9:26:49 PM7/29/15
to Python Programming for Autodesk Maya
Try running each line, one by one. That should help narrow down the issue. The error you're showing says error at line 6 but you only have 4 lines of code that I can see.
Reply all
Reply to author
Forward
0 new messages