jamesearnest244 Posted September 30, 2021 Share Posted September 30, 2021 (edited) Hi, Is there a way in VEX to get the value of an attribute at a specific time? For example, the @P.x of point 0 at frame 15? I know I can use a Time Shift node but I'm looking for a more flexible solution in VEX. Thanks! Edited September 30, 2021 by jamesearnest244 Quote Link to comment Share on other sites More sharing options...
Atom Posted September 30, 2021 Share Posted September 30, 2021 (edited) If you connect the TimeShift to the second input of the attributeWrangle node, you can fetch from it using the point function. vector time_shifted_attrib = point(1,"my_attrib",@ptnum); Note: Using python, you can evaluate a parameter channel at a certain point in time, but that's not the same as an attribute. https://www.sidefx.com/docs/houdini/hom/hou/Parm.html Edited September 30, 2021 by Atom Quote Link to comment Share on other sites More sharing options...
jamesearnest244 Posted September 30, 2021 Author Share Posted September 30, 2021 Thanks, I did consider the Time Shift node, but it's a little cumbersome for what I'm trying to achieve. I'd like each point to fetch the value from a different frame, and I have quite a few points. So I wanted to write some VEX that would select the delay per point based on @ptnum. Quote Link to comment Share on other sites More sharing options...
vicvvsh Posted September 30, 2021 Share Posted September 30, 2021 Hi, you can pull your animated geometry into chop with Geometry chop node. Then read a value of channels, which are point's coordinate, within a point wrangle using chop() function. https://www.sidefx.com/docs/houdini/vex/functions/chop.html 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.