Mike, I got one more for you. I’m doing this to make slates. I know how to use pyTime and the command to execute a hotkey to make cut points. I want to cut the clip into 3 segments and put a text TL FX on the middle segment. Can you use Python to select a segment at a given timecode?
Dude. This is so great. I learned Python with batch and the syntax for how to work with clips/reels has been difficult for me to pick up. This is extremely helpful! The next time I see you dinner is on me!
When I run the script (the orig you posted) I get this error:
Invalid Entry.
Import to Reel execute callback [<function import_to_reel at 0x7f630a696ef0>((<flame.PySequence object at 0x7f72edb306c0>,),)] failed because of an error of type ‘Invalid Entry.’
I found this script very useful and wanted to try adding it to timelineFX, a saved text preset. How could I add this? I tried to do it that way but to no avail.
Thanks
Wilton
sequence.versions[0].tracks[0].segments[0].create_effect('Text')
for tlfx in segments.effects:
if tlfx.type == "Text":
tlfx.load_setup("/opt/Autodesk/shared/python/slate/template_slate_16x9.ttg")
else:
print ("No Text")
Yes, the movie file with the text attribute.
The only error is related to the “for” that I put right below, but it doesn’t interfere with the rest of the script.
(Flame 2022.1 / Linux)
I just gave it a shot here in 2022.2 and it worked. Does it import the clip? or are you getting this error before it even does the import? If so… maybe something is wrong with the path or the clip itself.
Aha! I was rt-clicking in the reel on the desktop, not in the media panel. If I rt-click in the media panel it works. Any way to get it to work on the desktop reel? I didn’t think that was different. Or maybe it’s a bug?