Nils Nommensen <n.nommen...@gmail.com> writes:

> Hello,
> I am currently experimenting with Lilypond and its internal functions and
> have a question regarding grobs:
> Is it somehow possible to get a unique identifier of the context a given
> grob object is in?

A grob object is not as much _in_ a given context but announced _from_ a
context.  grob-acknowledgers of an engraver receive their own engraver
as one argument and the source engraver as another.  Checking the
ly:translator-context of the source engraver should give you the closest
you can get to what you want.  Short of what grob-acknowledgers get to
see, there is no record what context a grob originated from.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to