CinnamonMetal Posted May 15, 2019 Share Posted May 15, 2019 Where can I find information on the @rest attribute, simply the documentation ? Quote Link to comment Share on other sites More sharing options...
Jesus Nieto Posted May 16, 2019 Share Posted May 16, 2019 You can read something about the rest node (which generates the rest attribute) here: https://www.sidefx.com/docs/houdini/nodes/sop/rest.html But if you are wondering what it is. It is basically the same attribute than @P but renamed to be @rest. It's useful when you want to apply noises to moving geometry so that your geometry doesn't look like it is swimming in the world space noise. The way to use it is if you are going to apply a geometry noise in a VOP, Instead of connecting your noise to the position (@P). you would bind import your @rest attribute and connect it to that instead. The @rest attribute has to be generated on a still or non time dependent frame, otherwise it will change every frame to your current position and it won't really be at rest. If the geometry is already moving and you would like to create a @rest, you could drop a time shift node with any frame, create the rest with the rest node, or writing v@rest = @P; in a point wrangle. And then you copy it back to your moving geometry with an attribute copy. Bear in mind though, the point count has to be the same. Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted May 16, 2019 Author Share Posted May 16, 2019 @Jesus Nieto That is the information I wanted to know, although since I'm not using the Rest SOP, that would make the @rest attribute when used in a VOP a hidden attribute; not even visible in the global attributes ? Quote Link to comment Share on other sites More sharing options...
Jesus Nieto Posted May 16, 2019 Share Posted May 16, 2019 @CinnamonMetal Quote Link to comment Share on other sites More sharing options...
Jesus Nieto Posted May 16, 2019 Share Posted May 16, 2019 Correct, @rest is not by default in the globals inside a VOP, how ever if you open the geometry spreadsheet you will see that it has been created. And to use it inside the VOP you would need to import it via "get attribute" or "bind". 1 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.