I have two GU_Detail(geo1, geo2) and I want copy/move point attributes from geo1 to primitive attributes in geo2(if they dont exist). I dont care about values, I am just want to copy names and types of attributes.
thank you, I simplify and modify it for my purpose: GA_Attribute* src_attr; GA_FOR_ALL_PRIMITIVE_ATTRIBUTES(input_1, src_attr) { gdp->addPointAttrib(src_attr); } PS: I think its not necessary to test if attribute is valid, It works fine