Store the Specification Data (i.e. ADF Raw Data) in the Attributes #195
adnanmunawar
started this conversation in
Ideas
Replies: 2 comments
-
|
#194 Adds these features |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Usage in a plugin: // Get the attributes which were used to construct the object
afBaseObjectAttributes* objAttribs = myObjPtr->getAttributes();
// Cast the base attributes to the object type i.e. HINT myObjtPtr->getType();
// E.g. If myObjPtr is of type RIGID_BODY
afRigidBodyAttributes rbAttribs = (afRigidBodyAttributes*) objAttribs;To get the specification data, use: afSpecificationData specData = myObjPtr->getAttributes()->getSpecificationData();
printf(specData.m_rawData); // This will print the raw data from the specification file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The ADF File is converted into afAttributes and we currently discard the raw data from the ADF file. Instead, saving it and allowing access to it is recommended. A good use case is the need to define additional data in the ADF file (data block) that can be used by a plugin.
Beta Was this translation helpful? Give feedback.
All reactions