<div dir="ltr">Thanks Matthias!<div>I forward your tips to the author</div><div>Cheers</div><div>Régis</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-19 17:09 GMT+02:00 Matthias Kuhn <span dir="ltr"><<a href="mailto:matthias@opengis.ch" target="_blank">matthias@opengis.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Régis,<br>
<br>
@[somthing] variables are taken from the QgsExpressionContext which<br>
contains several QgsExpressionScopes. So you can just add a new<br>
QgsExpressionScope to the QgsExpressionContext which is used to evaluate<br>
the expression.<br>
<br>
Not sure how hotlink works but if it evaluates expressions by itself it<br>
shouldn't be hard to adjust the context with additional variables.<br>
<br>
Matthias<br>
<div><div class="h5"><br>
On 10/19/2016 01:33 PM, Régis Haubourg wrote:<br>
> Hi,<br>
> Is it possible to set qgis variables such as @click_x or @click_y using<br>
> python?<br>
><br>
> I used hotlink plugin that is an alternate way of triggering layer<br>
> actions.  All other ways will return thos variables with clikc location<br>
> on the canvas, when hotlink doesn't. How could we fix that?<br>
><br>
> Thanks for your lights<br>
><br>
> Régis<br>
><br>
> --<br>
> OSLANDIA<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
><br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Régis Haubourg<br><br>Attention, changement d'adresse mail! <br>Mon adresse principale devient désormais regis.haubourg at <a href="http://gmail.com" target="_blank">gmail.com</a><br><br></div>
</div>