<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Hi</div><div dir="ltr" data-setdir="false"><div><div dir="ltr" data-setdir="false">I am working on an expression that creates an object, <span>I need the reference to the object to be visible by other expressions.</span><br></div></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><div><div>I can create a global, project, variable with:</div><div><br></div><div>param='hello'</div><div>param = QgsExpressionContextUtils.globalScope().variable('param')</div></div><div><br></div><div dir="ltr" data-setdir="false"><div><span style="color: rgb(35, 38, 41); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; background-color: rgb(249, 248, 246);">But it only allows me to store text or numbers.</span><br style="color: rgb(35, 38, 41); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; background-color: rgb(249, 248, 246);"><em style="margin: 0px; padding: 0px; border: 0px; font-stretch: inherit; line-height: inherit; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif; font-size: 15px; vertical-align: baseline; color: rgb(35, 38, 41); background-color: rgb(249, 248, 246);"><strong style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; vertical-align: baseline;">How can I store a reference to an object?</strong></em></div><br></div></div><span>Oh how else can I achieve what I am looking for?</span><br></div><div dir="ltr" data-setdir="false"><br></div></div></body></html>