3ds Max (2014) - Hide objects through Python

3ds Max (2014) - Hide objects through Python

Anonymous
Not applicable
899 Views
2 Replies
Message 1 of 3

3ds Max (2014) - Hide objects through Python

Anonymous
Not applicable

Hi, this problem has me completly stuck: I can’t hide objects through python API. I am a noob, so pls be patient 🙂

I tried this:

 

import MaxPlus

myCylinder = MaxPlus.INode_GetINodeByName("Cylinder001")
print myCylinder.IsNodeHidden()
myCylinder.Hide()

Than I get this in MAXScrip Listener:

 

 

False
-- Runtime error:  Line 5  <module>()
  <type 'exceptions.TypeError'> 'bool' object is not callable

 

Could somebody help me? Any idea?
Thanks in advance!

 

0 Likes
900 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

use

myCylinder.SetHidden(True)

instead of ur code.

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thy for your reply!

This works for me:

myCylinder.Hide = True
0 Likes