<div dir="ltr"><div class="gmail_extra">Hey Andreas,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Parent means the parent expression itself.  So in a function, you can know what the whole expression is e.g it points to the instance of. </div><div class="gmail_extra"><br></div><div class="gmail_extra">You can't really know what the layer because expressions are not always layer bound and QgsFeatures don't hold a reference to the layer they are from.  Best you can do at the moment I think is to pass the layer name or id into the custom expressions.</div><div class="gmail_extra"><br></div><div class="gmail_extra">- Nathan</div></div>