AWS Thinkbox Discussion Forums

Draft Examples

Hey guys,

I saw your post to Jeremy about the draft job burning in frame number, which is helpful. But what would be tremendously helpful would be another example that shows how we can call a variety of functions in draft. Here is a list of things that I assume it can do, but without docs an example would be very helpful.
(Of Course, If there are docs or examples somewhere, just point me to them)

I assume it can do some drawing function, such as if we want to burn in a crop line.
Burn in a timecode field with a built in timecode offset (might need timecode fps base defined?)

Can we access metadata of the file? perhaps dumping some metadata text to screen would be good.

filename
filepath
image size
image bit depth
current date
current time

Thanks
Fred

Hey Fred,

documentation and example scripts are all in this thread here:
viewtopic.php?f=125&t=6892

Filename/filepath of the file is obviously going to be known if you have the file (since you need the filename to open it…), image size can be accessed once Images are read in (by using .width and .height on the image), current date/time can be obtained via regular python functions (see docs.python.org/library/datetime.html).

There currently isn’t anything exposed that returns the bit depth of the image, however.

Cheers,

  • Jon

Thank you. I look forward to looking into these examples tomorrow. :slight_smile:

Privacy | Site terms | Cookie preferences