Masoud Posted May 17, 2019 Share Posted May 17, 2019 Hi; In my material texture tab, I have 130 frames image sequence, but I want to hold the last frame to end of my animation (1000 frames). I put this code, but it doesn't work: $HIP/tex/Display_A_`clamp($F,130,1000)`.jpg Thanks for helping. Quote Link to comment Share on other sites More sharing options...
malexander Posted May 17, 2019 Share Posted May 17, 2019 It's: $HIP/tex/Display_A_`clamp($F,1, 130)`.jpg clamp() holds the first value if less than the min, and the last value if greater than the max. Quote Link to comment Share on other sites More sharing options...
Masoud Posted May 18, 2019 Author Share Posted May 18, 2019 Thank you very much. Quote Link to comment Share on other sites More sharing options...
Masoud Posted May 18, 2019 Author Share Posted May 18, 2019 (edited) Hi again , I put these codes, but it's not working: $HIP/tex/Display_A_`clamp($F,1,130)`.jpg My file's name are: Display_A_0001.jpg Display_A_0002.jpg Display_A_0003.jpg ... Edited May 18, 2019 by Masoud Quote Link to comment Share on other sites More sharing options...
ikoon Posted May 20, 2019 Share Posted May 20, 2019 Hi Masoud, padzero() expression wrapped around the clamp() adds those zeroes: $HIP/tex/Display_A_`padzero(4,clamp($F,1,130))`.jpg https://www.sidefx.com/docs/houdini/expressions/padzero.html Quote Link to comment Share on other sites More sharing options...
Masoud Posted May 20, 2019 Author Share Posted May 20, 2019 4 hours ago, ikoon said: Hi Masoud, padzero() expression wrapped around the clamp() adds those zeroes: $HIP/tex/Display_A_`padzero(4,clamp($F,1,130))`.jpg https://www.sidefx.com/docs/houdini/expressions/padzero.html Now it works fine , thank you. 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.