Guest mantragora Posted November 2, 2014 Share Posted November 2, 2014 Hi. I seems to have problem with iterating over attributes. All methods I could find seems to fail. When I try this: for (auto it : gdp->pointAttribs()) { } or this: for (auto it = gdp->pointAttribs().begin(); !it.atEnd(); ++it) { } I get error:error C2248: 'UT_SymbolMap<ITEM_T,SAFE_STRINGS>::UT_SymbolMap' : cannot access protected member declared in class 'UT_SymbolMap<ITEM_T,SAFE_STRINGS>' Based on this example -> http://www.sidefx.com/docs/hdk13.0/_h_d_k__g_a__porting.html#HDK_GA_PortingCookbook_Iterating_Over_Attributes When I try this: for (GA_AttributeDict::iterator it = gdp->pointAttribs()).begin(GA_SCOPE_PUBLIC); !it.atEnd(); it.advance()) { } then it shouts that there is no advance() method. Example is from -> http://www.sidefx.com/docs/hdk13.0/_h_d_k__geometry__attributes.html#traverseAttribute? Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted November 2, 2014 Share Posted November 2, 2014 Nevermind. It started working. But don't ask me what I changed because I have no idea Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.