ziggx Posted April 1, 2006 Share Posted April 1, 2006 Hi there, Stuck as usual. I want to create a font with a percentage number that increments after a certain number of frames. I tried using an if construct in the text field but it didn't work nor could I get an expression to work. Is this possible or not? This is Houdini so it's almost definitely me screwing up. Any help would un befuddle my brain. TIA Ziggx Quote Link to comment Share on other sites More sharing options...
aracid Posted April 1, 2006 Share Posted April 1, 2006 hey there do u run ur expression in `$F` and not just $F ? u need to run expressions in ` ` to execute them that wont give u a percentage, but it will print the frame using the font sop. hope this helps aracid Quote Link to comment Share on other sites More sharing options...
Jason Posted April 2, 2006 Share Posted April 2, 2006 For string values to be returned, please use the ifs() expression instead of if(). Hope this helps, Jason Quote Link to comment Share on other sites More sharing options...
ziggx Posted April 2, 2006 Author Share Posted April 2, 2006 For string values to be returned, please use the ifs() expression instead of if().Hope this helps, Jason 26227[/snapback] I'm not getting this. I try to put this into the text field: ifs($F<10,42,$F) And it spits out the literal expression -- I have tried putting in backtick tick around various parts of the expression, but I don't get it to work. Soz -- it's late and I'm being very dense. Help! Ziggx Quote Link to comment Share on other sites More sharing options...
deecue Posted April 2, 2006 Share Posted April 2, 2006 like this: `if($F<10,42,$F)` if you want a percentage sign before hand, just put % in before the first tick.. the ticks are for evaluating the expression because without them, the font sop will just spit out what you've typed in there.. ifs() shouldn't be necessary here unless you actually plan on using a string inside the if statement such as: `ifs($F<10,42,padzero(4,$F))` hth, dq Quote Link to comment Share on other sites More sharing options...
ziggx Posted April 2, 2006 Author Share Posted April 2, 2006 like this: `if($F<10,42,$F)` if you want a percentage sign before hand, just put % in before the first tick.. the ticks are for evaluating the expression because without them, the font sop will just spit out what you've typed in there.. ifs() shouldn't be necessary here unless you actually plan on using a string inside the if statement such as: `ifs($F<10,42,padzero(4,$F))` hth, dq 26229[/snapback] Thanks everybody -- great list, great people. Ziggx 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.