JustinAlvarez
04-12-2006, 03:33 AM
I am trying to make a macro that will display embedded dpx timecode since I haven't had success with the one I found on highend2d.com.
What it does is take the filename (the frame number is embedded in the filename after scanning) and then does the math to arrive at timecode and then print this through a text node.
The problem is, that the filename is a string.. so i need to convert this to an int to be able to do the math, then convert back to a string, since the text node can only accept a string. I have used "atoi" to convert the string to int, but as far as i have found, I can't convert this back to a string once i have arrived at the timecode I want to print (sprintf is not recognised by shake?).
Anyone know how this can be done?
Thanks for any help
What it does is take the filename (the frame number is embedded in the filename after scanning) and then does the math to arrive at timecode and then print this through a text node.
The problem is, that the filename is a string.. so i need to convert this to an int to be able to do the math, then convert back to a string, since the text node can only accept a string. I have used "atoi" to convert the string to int, but as far as i have found, I can't convert this back to a string once i have arrived at the timecode I want to print (sprintf is not recognised by shake?).
Anyone know how this can be done?
Thanks for any help
