I have developed a node using the NodeModel implementation. To access data associated with the dynamo environment I added functionality to the NodeView where I was able to access nodeView.ViewModel.DynamoViewModel.Model
this allows me to pull the Version, File Name and File Path. The issue I am facing is this:
If a saved version of the script is opened, the NodeModel is instantiated first, causing values pulled from NodeView to be null and there is no way to force a re-calculation. In dynamo player, the NodeView is NEVER instantiated because the node is not visualized.
Is it possible to access the NodeView or the ViewModel from the NodeModel?