Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
What is the equivalent function of "isValidNode" in the C# (Autodesk.max.dll)?
Solved! Go to Solution.
What is the equivalent function of "isValidNode" in the C# (Autodesk.max.dll)?
Solved! Go to Solution.
a node with not deleted reference object
So any function to check that?
@MehdiZangenehBar wrote:So any function to check that?
(node && node->NumRefs() && node->GetReference(0) && !node->IsDeleted(node->GetReference(0)))
But... it depends on what you mean by "valid". A deleted node is still valid to the system, for example. It might be contained in "undo" records and continues to retain the anim handle.
This is why I never use MXS's isValidNode method alone, without isDeleted
I can't find node->IsDeleted in the C# library.
It’s derived from (Animatable*) … or from (ReferenceTarget*)