[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Get the context name of grob object
From:       David Kastrup <dak () gnu ! org>
Date:       2019-06-30 17:02:22
Message-ID: 8736jrnh0h.fsf () fencepost ! gnu ! org
[Download RAW message or body]

Nils Nommensen <n.nommensen@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic