Jump to content

Attribute at a given frame ?


Ber

Recommended Posts

Hi everyone,

I'm junior with houdini, so is it possible to returns the value of a point/prim attribute at a given frame ? with expressions or nodes ...
I want to use the age of my particles at a given/last frame, in a stamp expression... 

Like a point expression, but at a given frame ^^ 

Thanks 
Bertrand
 

Link to comment
Share on other sites

If your point source for the Copy node contains attributes you can reference them in a stamp simply by typing the name of the attribute you want to stamp in the Attributes Stamp field under the Stamp tab. Remember to turn on stamping as well.

 

Then you can just use the attribute name as if it were a stamp variable.

stamp("../copy1","age",0)
Edited by Atom
Link to comment
Share on other sites

Hi atom, 

Many thanks for your quick reply, but unfortunatly that doesn't answere my question, I want to return the value of an attribute at a given frame, for example, I need to return the age of a particle at the 250th frame of my timeline.
I tried chf(...) or cht(...)  expression to return the value of a variable at a given frame/time but doesn't work ... 

I'm new on houdini and I try to learn by myself, but today your help is welcome.

Cheers 
Bertrand 

Link to comment
Share on other sites

well you can get the value in attribute VOP or there can be many other ways

in attribute VOP 

frame => compare (Equal==250) => twoway switch =>add attribute (call it whatever name e.g. test)

age connect to input1 of twoway switch

and then stamp the attribute test

Link to comment
Share on other sites

Ok, now I see what you want. You are on say frame #1 and you want the age attribute of frame #250.You may want to just drop down a python node and use setTime to move to the frame you are on then fetch the attribute and then set the time back to the current frame.

Edited by Atom
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...