Dries Posted October 31, 2006 Share Posted October 31, 2006 string tc() { d = padzero(20,3); return d; } This is what I get: /obj -> echo `tc()` 3 /obj -> Can I not use hscript commands in a function then? [sOLVED] You have to declare your variables Dries! string tc() { string d = padzero(20,3); return d; } Duh, didn't you know beforehand you were going to find the solution right after you posted the question?? Thanks, very much appreciated. D. Quote Link to comment Share on other sites More sharing options...
edward Posted November 1, 2006 Share Posted November 1, 2006 Yeah, it's a bit of a gotcha since I think you can sometimes get away with not declaring float variables. Quote Link to comment Share on other sites More sharing options...
Dries Posted November 1, 2006 Author Share Posted November 1, 2006 Thanks for your understandig edward :-) While I can get away with this simple function to generate a timecode to us in a Font COP, don't you think it would be a good idea to have $TC next to $T and $F as well? for 24 or 25fps timecodes it is simple enough, but there are also dropframe timecodes and PAL/NTSC issues... Tip for H9? D. Quote Link to comment Share on other sites More sharing options...
edward Posted November 1, 2006 Share Posted November 1, 2006 I think it would be easier in python. 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.