Jump to content

evaluating display flag in OBJ level


avak

Recommended Posts

Hi,

I know how to check display flag in sop level by python, but how can I do in obj level

I want to write something like this so it checks box 1 display status and apply that status to box 2,

import hou
box1 = hou.node('/obj/box1')
box2 = hou.node('/obj/box2')
box1.setDisplayFlag("EVALUATE DISPLAY FLAG OF BOX2")

 

image.thumb.png.c1c1256349fb6940fabbf8b365e26d6a.png

Edited by avak
Link to comment
Share on other sites

Thanks to replay, although I think I wasn't clear enough,

I know about boolean things (..at least:D )

but I want to know how to get the display flag status of a node  and store it's value in a variable then pass it to another node's display flag 

 

Link to comment
Share on other sites

Thats exactly my problem, I get this error

 The attempted operation failed.
Traceback (most recent call last):
  File "hou.session", line 4, in <module>
AttributeError: 'ObjNode' object has no attribute 'getDisplayFlag'

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...