Ber Posted November 21, 2015 Share Posted November 21, 2015 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 Quote Link to comment Share on other sites More sharing options...
Atom Posted November 22, 2015 Share Posted November 22, 2015 (edited) 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 November 22, 2015 by Atom Quote Link to comment Share on other sites More sharing options...
Ber Posted November 22, 2015 Author Share Posted November 22, 2015 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 Quote Link to comment Share on other sites More sharing options...
sfpar Posted November 23, 2015 Share Posted November 23, 2015 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 Quote Link to comment Share on other sites More sharing options...
Atom Posted November 23, 2015 Share Posted November 23, 2015 (edited) 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 November 23, 2015 by Atom Quote Link to comment Share on other sites More sharing options...
anim Posted November 23, 2015 Share Posted November 23, 2015 you can just put down Time Shift SOP, set frame to 250 and sample values from there 2 Quote Link to comment Share on other sites More sharing options...
sebkaine Posted November 23, 2015 Share Posted November 23, 2015 I think Tomas method is simple and will work, i have attach a trivial exemple. I was also investigating with a SOP solver but it was kinda overkill at the end compare to the time shift. sample_at_frame.hiplc Quote Link to comment Share on other sites More sharing options...
Ber Posted November 24, 2015 Author Share Posted November 24, 2015 Hi guys !!Many thanks for the answers, I'll try all your solutions ! Cheers !Bertrand 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.