TheUsualAlex Posted July 27, 2007 Share Posted July 27, 2007 Hi, if I want to find an attribute of a particular name, but don't care whether it's point/prim/vertex/detail or float/int/vector/string, is there a method that'd allow me for a quick check? or do I have to check in point/prim/vertex... etc. etc. for them? also, if I do need to check in piont/prim/vert etc etc. will I need to go through each of them in certain order to check or any of the same named attribute in certain class? much thanks! Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted July 27, 2007 Author Share Posted July 27, 2007 hmm... thinking some more about it, I guess findAttrib() will suit my need. However, just wonder, assuming that the same named attribute exist in point/prim/vert/detail, I assuming that these are the order of importance? vertex - point - prim - detail? Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted July 27, 2007 Author Share Posted July 27, 2007 Hahaha. I just realized that didn'tmake much sense earlier -- considering that I just woke up with stuff in my mind (was dreaming about something too). Anyways, I got a few ideas I am going to try. What I was trying to do was just to check for incoming attributes and create a matching varmap out of it. I was just thinking what I would need to do in an unlikely scenerio that users have both float/int or float/vector, etc, etc, with the same attribute name or if there is a point/prim attribute of the same name, etc. Quote Link to comment Share on other sites More sharing options...
edward Posted July 28, 2007 Share Posted July 28, 2007 If you want to support the attribute at the different levels, then yes, you would need to run the find on each entity type in turn. Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted July 28, 2007 Author Share Posted July 28, 2007 aah cool. Thanks, Ed. Just wanted to know that I wasn't doing things the wrong way. Still an absolute newbie, you know. 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.