Jump to content

Hscript In Functions


Dries

Recommended Posts

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;
}

:blush:

Duh, didn't you know beforehand you were going to find the solution right after you posted the question??

Thanks, very much appreciated.

D.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...