Jump to content

Vector transform problem


Lewul

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...