On 22 Sep, 2012, at 10:26 PM, "Alok Gandhi" <
alok.ga...@gmail.com<mailto:
alok.ga...@gmail.com>> wrote:
The custom attributes have a lazy update implementation and are evaluated on as needed basis. If you force the attribute by showing it, or using it somehow in the tree, it might give you right count.
On Sat, Sep 22, 2012 at 6:14 AM, Stephan Woermann <
swoer...@googlemail.com<mailto:
swoer...@googlemail.com>> wrote:
Have a problem to get user defined ICE attributes.
I can check if an attribute is available. But the count of data is different.
ICEAttribute attr = cloud.GetActivePrimitive().GetGeometry().GetICEAttributeFromName( L"TestAttribute" );
Application().LogMessage( CString( attr.GetElementCount() ) );
This gives me a right value.
CICEAttributeDataArrayBool cTest;
attr.GetDataArray( cTest );
Application().LogMessage( CString( cTest.GetCount() ) );
Gives me 0 back.
With known attributes like Size or PointPosition, i get with both of them the right value...
--