On Sat, 2007-08-11 at 15:15 +0100, mark carter wrote:
> Exciting stuff (for me anyway), but I've managed to get a scripting
> interface going in Cinelerra. It could open up a world of possibilities
> for user scripting, building compound effects, whatever.
>
> What I've got working so far is a menu item that brings you to the
> script editor. You can then type some commands, and when you get bored,
> type `bye'.
Well done!! :)
> I've used ficl - a Forth embeddable scripting language, so you get a
> full Forth programming language straight out of the box, and whatever
> internals Cinelerra has exposed to it.
I know FICL well, been using it on and off since 2001. Best embeddable
forth out there, IMHO. Not particularly fast, hasn't been maintained for
ages, but still a great Forth.
What I would strongly suggest is that as you flesh this out, split your
interface into 2 layers:
1. lower-level C API, abstract, simple, completely free of any
forth-isms
2. FICL layer - primitives as thin as possible, just taking args off
the stack, calling the respective API function, and putting any
relevant return values on the stack
That way, it will be possible for people to implement scripting
interfaces in other languages - python, lua etc.
> Not much is exposed at the moment - you can type
> goto-start
> to go to the start frame.
>
> Well, it's a start, n'est pas?
>
> Interesting??
Very interesting, and sorely needed.
Cheers
David
_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra