H2O Posted May 19, 2015 Share Posted May 19, 2015 Hi everyone, I have a big issue about exporting data from vexpression context. I used vexpression to set the velblend parameter in the "popadvectbyvolume" node. So I can advect particles differently along time. But I'm not sure what result number I have, so I want to export this value to check it out in the geometrie spreadsheet. I found this line in Houdini Help: export float @mytest = 0; So here is my code: #use a parameter to set the velblend velblend = @activate; #use a count to set the velblend differently when I want toif(@count >= 3) { velblend = 1/((@count/3)*5); } #want to export the final result to debugexport float @velblend; My popnetwork works fine (my particles get different vel along time) and I don't have any error. But when I check the velblend attribut in spreadsheet, it stay to 0.0 So I tried different syntax like: export float @debug = velblend; export float @debug = @velblend; export float @parm_velblend; But each time I had an error : "velblend" is not a valid default for this prototype... I'm getting crazy right now!! If someone could have an idea, it could be great! Thx a lot. Cheers Quote Link to comment Share on other sites More sharing options...
anim Posted May 19, 2015 Share Posted May 19, 2015 (edited) you need to initialize export variable to constant value, it can't be another variable and then later you can assign a varying value to it export float @velblend = 0; velblend = @activate; if(@count >= 3) { velblend = 1/((@count/3)*5); } @velblend = velblend; in a cleaner example: export float @debug = 0; f@debug = rand(@id); Edited May 19, 2015 by anim Quote Link to comment Share on other sites More sharing options...
H2O Posted May 19, 2015 Author Share Posted May 19, 2015 Greaaat!!! It works perfectly :D Thx a lot anim! 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.