kubabuk Posted November 24, 2011 Share Posted November 24, 2011 (edited) I'm trying to incorporate copyPointAttributes function from hdk as a inline cpp but for some reason it has no effect The code attached below. First argument is the hou.pwd().geometry and the second is the frozen geometry from a different node. The point count is the same. void copyAtribs(GU_Detail *gdp, const GU_Detail *refGeo) { for (unsigned i=0; i<refGeo->points().entries(); ++i) { GEO_Point * pps = gdp->points()[i]; const GEO_Point * ppr = refGeo->points()[i]; gdp->copyPointAttributes(*pps,*ppr); } } Edited November 24, 2011 by kubabuk Quote Link to comment Share on other sites More sharing options...
kubabuk Posted November 25, 2011 Author Share Posted November 25, 2011 ok, got it working, I rewrote the whole loop myself. This is probably not the fastest approach on earth, but still 3.5 times faster then pure python approach. k. Quote Link to comment Share on other sites More sharing options...
kubabuk Posted December 3, 2011 Author Share Posted December 3, 2011 It has been confirmed that this function works when modifying attributes coming from the same source geometry. 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.