On 8/11/2025 9:59 AM, vm via ntg-context wrote:
Thank you Hans for pointing out, this makes a large difference already.


you can store the path as table at the lua end (e.g. document.mypath) and then use "mp.path" to print from a lua call at the mp end; or as string and print with "mp.print" or bypass the parser with "mp.inject.path" or ... (grep for these in the tree)

Is it possible to make the mp draw call also from lua, so that I can pass the pen and color as well ?

Or that can add the pen and color to the path before inserting it?
As you can tell, I'm not very familiar with the internals of mp...

it makes little sense as there are all kind of properties to deal with; and actually 'draw' is a macro

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to