Discussion:
Namespace to get shoebot specific functionality?
Stuart Axon
2009-06-09 22:41:03 UTC
Permalink
I wonder if we should have a namespace to provide shoebot implementation specific variables (like the current cairo context for instance). These could be used to do stuff like save the current frame from a script (like in tristans mail).

We could use this area to experiment, with the caveat that it may change between releases - hopefully functionality could be moved from here to a standard area for native shoebot mode (if /when we have this) and for nodebox mode.

?
Dave Crossland
2009-06-09 22:43:42 UTC
Permalink
I wonder if we should have a namespace to provide shoebot implementation specific variables (like the current cairo context for instance).  These could be used to do stuff like save the current frame from a script (like in tristans mail).
That sounds like a smart idea to me:)
ricardo lafuente
2009-06-10 13:28:03 UTC
Permalink
Post by Stuart Axon
I wonder if we should have a namespace to provide shoebot implementation specific variables (like the current cairo context for instance). These could be used to do stuff like save the current frame from a script (like in tristans mail).
this sounds like a great idea indeed. I'd say hack away -- we can worry
about separating Shoebot-specific and Nodebox commands when the need
arises, i guess.

(btw, snapshot() does the saving of the canvas's contents. It worked
nicely last time i checked, and can output in all supported formats -
ps, png, svg and pdf)

the cairo context accessibility would be tops, btw. I tried implementing
this before and wasn't successful.

Loading...