Notifications
Clear all

[Closed] Animating IsHidden

Actually what drives the visibility is a Custom Attribute. Here we used an EmptyModifier to hold it as the OP used it too, but you can attach it to any modifier or to the base object and so it won’t change the class of the object.

1 Reply
(@denist)
Joined: 10 months ago

Posts: 0

I prefer to use custom attributes for the base object … but the problem is this: all notifications go first to the subanims of the node, and then to the base object, plugins and attributes.

so if we bind some node’s subanimes with CA, it means they are evaluating multiple times on a very time sample. First time is before CA parameters changed, and next is after.

the callback function should be:

fn visibilityFilter node = (isvalidnode node and not node.visibility)

the sdk method for DisplayFilterCallback is:

BOOL IsVisible(SClass_ID sid, Class_ID cid, INode *node); 

it paases any INode including RootNode and deleted nodes… so we need to check it.

 MZ1

This is awesome Denis, Thank You!

Page 6 / 6