PDA

View Full Version : Query Active/Inactive state of Layout item



ernpchan
03-23-2015, 12:40 PM
I can toggle an item in the Scene Editor via the Layout command


ItemActive("<active>");

But is there a way to query what the status is first?

[edit]
Yes.
lwsdk.LWITEMF_ACTIVE

flags(LWItemID item) → unsigned int
Returns certain item settings as a set of bit flags:

lwsdk.LWITEMF_ACTIVE
lwsdk.LWITEMF_UNAFFECT_BY_IK
lwsdk.LWITEMF_FULLTIME_IK
lwsdk.LWITEMF_GOAL_ORIENT
lwsdk.LWITEMF_REACH_GOAL
lwsdk.LWITEMF_USE_IKCHAINVALS