Jump to content
Sign in to follow this  
cloudamy

general houdini workflow question of solver node when trying to print in pytjon

Recommended Posts

Hi, I have a general question about the workflow of houdini of solver node.

I created a volume with a vector field called h, and I tried to update h at each time step using a solver node, and then I tried to print using a python node to see if h got modified, but it is not, it is still the initial value. Can someone explain to me why this is the case? Thanks a lot!

Screen Shot 2020-07-29 at 1.45.16 AM.png

Screen Shot 2020-07-29 at 1.45.26 AM.png

Share this post


Link to post
Share on other sites
Posted (edited)

your display flag should be on the volumewrangle and the input of that node should be Prev_Frame OR Input_1

Edited by bunker

Share this post


Link to post
Share on other sites
9 hours ago, bunker said:

your display flag should be on the volumewrangle and the input of that node should be Prev_Frame OR Input_1

Ohhhh! Thank you so much! 

When I put the display flag on the volumewrangle, it somehow says that my vector is a float??? Here I attached a screenshot of my volume h and the error message

If possible, can you also explain to me what's the relationship between prev_frame and input_1 or guide me to where I can learn about it myself?

Screen Shot 2020-07-29 at 12.22.10 PM.png

Screen Shot 2020-07-29 at 12.21.59 PM.png

Screen Shot 2020-07-29 at 12.22.28 PM.png

Share this post


Link to post
Share on other sites

maybe post a hip file

Share this post


Link to post
Share on other sites

In the volume wrangle you need to specify that 'h' is a vector by using 'v@h' rather than just '@h'. VEX assumes everything is a float unless told otherwise, or if it is one of a few specific attributes like Cd.

This page has some helpful info on attributes in VEX https://www.sidefx.com/docs/houdini/vex/snippets#attributes

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, eimk said:

In the volume wrangle you need to specify that 'h' is a vector by using 'v@h' rather than just '@h'. VEX assumes everything is a float unless told otherwise, or if it is one of a few specific attributes like Cd.

This page has some helpful info on attributes in VEX https://www.sidefx.com/docs/houdini/vex/snippets#attributes

Oh! Ok, thank you! 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×