Message 1 of 8
What is the SDK equivalent of the MaxScript function <node>.isNodeHidden ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In maxscript we can use <node>.isNodeHidden to get the node's hidden flag only.
For example, if a node is visible in the viewport, then $.isNodeHidden returns FALSE. If we hide the layer, all nodes in that layer become invisible in the viewport, but testing the same node with $.isNodeHidden still returns FALSE, which is exactly what I want.
In the SDK documentation, I have only found this:
IsNodeHidden()
virtual int IsNodeHidden ( BOOL forRenderer = FALSE )
inlinevirtual
Returns nonzero if the node is hidden in any way.
This method takes into account both the node hidden attribute and the 'Hide By Category' flags.
IsHidden()
virtual int IsHidden ( DWORD hflags = 0,
BOOL forRenderer = FALSE
)
inlinevirtual
Determines if the node is hidden in the scene.
Parameters
hflags If you pass 0, you will get the hidden state of the node. If you pass one or more of the flags shown below, the method checks the Class_ID of the node to see if it's hidden by the specified category. You may specify one or more of the following values:
When I hide the layer, IsNodeHidden() returns TRUE (nonzero), while $.isNodeHidden returns FALSE. IsHidden(0) or just IsHidden() also returns TRUE (nonzero).
Is there an SDK equivalent of $.isNodeHidden ?
https://miauu-maxscript.com/