wandersonp Posted January 14, 2015 Share Posted January 14, 2015 Im trying to change pscale im my plugin, but is not working. what im doing wrong? GA_Offset pt_offset; GA_RWHandleF pscale = GA_RWHandleF(gdp->findFloatTuple(GA_ATTRIB_POINT, "pscale")); if (!pscale.isValid()) { pscale = GA_RWHandleF(gdp->addFloatTuple(GA_ATTRIB_POINT, "pscale", 1, GA_Defaults(0.1))); GA_FOR_ALL_PTOFF(gdp, pt_offset) { pscale.set(pt_offset, 0.5); } } Quote Link to comment Share on other sites More sharing options...
wandersonp Posted January 14, 2015 Author Share Posted January 14, 2015 never mind, Solved my bad, I was trying to create pscale before create points in gdp. 1 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.