Lewul Posted October 24, 2015 Share Posted October 24, 2015 Hey, Is there a way to create an attribute vector which can follow transformations like rotations, like the N vector. For exemple : I want my vector attribute to be (0, 1, 0) at the first frame, and next frame if my object is rotating I want my attribute to inherit that rotation (so my vector attribute is not equal to (0, 1, 0) anymore). Maybe there is a simple solution to this problem, but I'm unable to find it... Thanks, Tom Quote Link to comment Share on other sites More sharing options...
anim Posted October 25, 2015 Share Posted October 25, 2015 either set Qualifier to vector or normal through Attribute Create SOP (right next to type, defaults to Guess From Name) or use setattribtypeinfo() VEX function to do that in wrangle or or Add Attribute VOP http://forums.odforce.net/topic/23891-how-to-get-dops-to-transform-your-input-point-vectors/?p=140366 Quote Link to comment Share on other sites More sharing options...
Lewul Posted October 25, 2015 Author Share Posted October 25, 2015 Thanks for your help Tomas, But do I have to assign it as a "rest" attribute (freezing frame 1, creating the attribute, and then attribute copy to the animated geo; if it is the best way to do it) ? Here is what I'm writing : v@newN = {0,1,0}; setattribtypeinfo(geoself(), "point", "newN", "normal"); With or without the timeshift the attribute value remain {0,1,0} during animation. But I want the first frame to be a kind of rest vector for the entire sequence. Or maybe I'm not doing it correctly. Quote Link to comment Share on other sites More sharing options...
f1480187 Posted October 25, 2015 Share Posted October 25, 2015 Hip-file? It is working for me. Make sure you are not testing by rotating around that axis and some deforming node is selected, not wrangle one. Quote Link to comment Share on other sites More sharing options...
anim Posted October 25, 2015 Share Posted October 25, 2015 well it will work for any SOP that transforms attributes, like Transform SOP, Deformation Wrangle SOP, and others however if you already have deforming geometry as an input, then just changing attribute qualifier will not change anything in that case you can use Attribute Reorient SOP, where you can feed frozen geo with "rest" version of that attribute to second input Quote Link to comment Share on other sites More sharing options...
Lewul Posted October 25, 2015 Author Share Posted October 25, 2015 Yes sorry I think I wasn't clear enough, indeed I already have deforming geometry. The Attribute Reorient SOP is working great, thank a lot ! 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.