I have a generator object that should display some derived data in the Attribute manager. The user should not be able to edit it. So far, we stored the text to display in the base container of the object and made this variable visible in the Attribute manager.
This has the disadvantage that every time the value is evaluated it increases the dirty counter of the object. Thus, we would like to display it, without storing the value in the object's base container. Is this possible?
If not, is there any other preferred way to display derived data without increasing the dirty counter?
Solved Display data in the attribute manager that is not stored in the object base container
I am not sure about the dirty state, and I am not familiar with generator object, but I have used NodeData::GetDDescription
and NodeData::GetDParameter
in the past to show data in the Attribute Manager.
Additionally, you can use NodeData::GetDEnabling
to disable (grey-out) the necessary gadget making it readonly.
I am not sure about the dirty state, and I am not familiar with generator object, but I have used NodeData::GetDDescription
and NodeData::GetDParameter
in the past to show data in the Attribute Manager.
Additionally, you can use NodeData::GetDEnabling
to disable (grey-out) the necessary gadget making it readonly.
Hi @daniell welcome on the plugincafe forum,
Don't worry since it's your first post, I've set up it correctly but please for the next one, make sure to read and apply the next rules:
- Q&A New Functionality.
- How to Post Questions especially tagging.
Finally, regarding your issue, you may find relevant the NodeData::GetDParameter() Manual and NodeData::SetDParameter() Manual.
Cheers,
Maxime.
MAXON SDK Specialist