<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="background-color: rgb(249, 248, 246); margin: 0px;">
<p style="text-align: left; text-indent: 0px; line-height: var(--_pr-lh); margin: 0px 0px 1.1em; font-size: 15px;">
<span style="font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; color: rgb(12, 13, 14);"><br>
In QGis I have defined a set of actions for a layer. I can trigger the actions by selecting the Actions icon in the toolbar, select the appropriate action, and then I get a cross mouse icon and can start clicking on features to actually run the action.</span></p>
<p class="elementToProof" style="text-align: left; text-indent: 0px; line-height: var(--_pr-lh); margin: 0px; font-size: 15px;">
<span style="font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; color: rgb(12, 13, 14);">However, I'd like to start the process (i.e. get the "cross" icon) from PyQgis. I've looked at the QgsAction
 documentation, and it has a </span><span style="font-family: var(--ff-mono); font-size: var(--_pr-code-fs);"><code style="font-family: var(--ff-mono);">run</code></span><span style="font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; color: rgb(12, 13, 14);"> method,
 but this is to apply it to a given feature. How can I run/start/trigger the action from python so that I can then start clicking on all the features I want the action to be applied to?</span></p>
<p class="elementToProof" style="text-align: left; text-indent: 0px; line-height: var(--_pr-lh); margin: 0px; font-size: 15px;">
<span style="font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; color: rgb(12, 13, 14);"><br>
</span></p>
<p class="elementToProof" style="text-align: left; text-indent: 0px; line-height: var(--_pr-lh); margin: 0px; font-size: 15px;">
<span style="font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; color: rgb(12, 13, 14);">The use case is the following: I want to update field X of several features in my layer to a new value. I've
 designed a docked widget so that I can input the new value to use, and then I want to start clicking on the features that I want to update; then change the value and click on other features, and so on. </span></p>
</div>
<div style="background-color: rgb(249, 248, 246); margin-top: var(--su24); margin-right: 0px; margin-bottom: var(--su12); margin-left: 0px;">
<div style="margin-right: 0px; margin-bottom: 10px; margin-left: 0px;">
<div style="text-align: left; text-indent: 0px; margin-right: 0px; margin-left: 0px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif; font-size: 13px; color: rgb(12, 13, 14);">
<br>
</div>
</div>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The action creation form (image attached) mentions that the action could be triggered from a button widget, but I'm not clear if that means I already need to know what feature I want it to apply to (which is not the case).</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Any help will be appreciated.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Didac</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div style="font-size:12pt;font-family:Calibri, Helvetica, sans-serif;color:rgb(0, 0, 0)" dir="ltr" id="divtagdefaultwrapper">
<table style="text-align: left; width: 450px; table-layout: fixed; border-collapse: separate; border-spacing: 0px; box-sizing: border-box;">
<tbody>
<tr>
<td align="center" style="vertical-align: top; width: 160px;">
<div style="margin: 0px; display: block; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 12pt;">
<a href="https://immense.ai"><img width="160" height="36" style="width: 160px; height: 36px;" src="https://immense.ai/email/immense.jpg"></a></div>
<p style="line-height: 10px; margin: 0px; width: 160px; display: block;"><span style="font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 12pt;"><img width="160" height="5" style="width: 160px; height: 5px; margin-top: 0px; margin-bottom: 0px; display: block;" src="https://immense.ai/email/spacer.gif"></span></p>
<div style="line-height: 1px; margin: 0px; display: block; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 1px;">
<a href="https://twitter.com/immense_ai" style="display: inline;"><img alt="Twitter" data-filename="twitter.png" width="16" height="16" style="width: 16px; height: 16px; margin-bottom: 2px; display: inline;" src="https://immense.ai/email/twitter.png"></a> <img width="2" style="width: 2px;" src="https://immense.ai/email/spacer.gif"> <a href="https://www.facebook.com/ImmenseSimulations/" style="display: inline;"><img alt="Facebook" data-filename="facebook.png" width="16" height="16" style="width: 16px; height: 16px; margin-bottom: 2px; display: inline;" src="https://immense.ai/email/facebook.png"></a> <img width="2" style="width: 2px;" src="https://immense.ai/email/spacer.gif"> <a href="https://www.linkedin.com/company/immense-simulations-ltd/" style="display: inline;"><img alt="LinkedIn" data-filename="linkedin.png" width="16" height="16" style="width: 16px; height: 16px; margin-bottom: 2px; display: inline;" src="https://immense.ai/email/linkedin.png"></a> <img width="2" style="width: 2px;" src="https://immense.ai/email/spacer.gif"></div>
<p style="line-height: 10px; margin: 0px; width: 160px; display: block;"><span style="font-family: "Times New Roman"; font-size: 12pt;"><img width="160" height="5" style="width: 160px; height: 5px; margin-top: 0px; margin-bottom: 0px; display: block;" src="https://immense.ai/email/spacer.gif"></span></p>
</td>
<td align="left" style="vertical-align: top; width: 10px;"><span style="font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 12pt; line-height: 16px;"><img width="10" style="width: 10px;" src="https://immense.ai/email/spacer.gif"></span></td>
<td align="left" style="border-left: 6px solid rgb(234, 90, 11); vertical-align: top; width: 16px;">
<span style="font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 12pt; line-height: 16px;"><img width="10" style="width: 10px;" src="https://immense.ai/email/spacer.gif"></span></td>
<td align="left" style="vertical-align: top; width: 274px;">
<div style="line-height: 12px; margin: 0px; display: block; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 10px; color: rgb(33, 33, 33);">
<span style="color: rgb(13, 36, 54);"><b>Didac Busquets, PhD</b></span> | <span style="color: rgb(13, 36, 54);">Chief Scientist and co-founder</span><br>
<span style="color: rgb(234, 90, 11);"><a href="mailto:didac.busquets@immense.ai" style="color: rgb(234, 90, 11); display: inline;">didac.busquets@immense.ai</a></span></div>
<p style="line-height: 10px; margin: 0px; width: 274px; display: block;"><span style="font-family: "Times New Roman"; font-size: 12pt;"><img width="274" height="5" style="width: 274px; height: 5px; margin-top: 0px; margin-bottom: 0px; display: block;" src="https://immense.ai/email/spacer.gif"></span></p>
<div style="line-height: 12px; margin-right: 0px; margin-left: 0px; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 10px;">
<span style="color: rgb(13, 36, 54);"><br>
<b>Sign up to our newsletter</b> </span><span style="color: rgb(234, 90, 11);"><b><a href="https://immense.us16.list-manage.com/subscribe?u=bd57eabb3c96301a8f113cbbd&id=c92fc09b7a" style="color: rgb(234, 90, 11);">here</a></b></span><br>
<span style="color: rgb(234, 90, 11);"><a href="https://www.immense.ai" style="color: rgb(234, 90, 11); display: inline;">www.immense.ai</a></span></div>
<p style="line-height: 10px; margin: 0px; width: 274px; display: block;"><span style="font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 10px;"><img width="274" height="5" style="width: 274px; height: 5px; margin-top: 0px; margin-bottom: 0px; display: block;" src="https://immense.ai/email/spacer.gif"></span></p>
</td>
</tr>
<tr>
<td colspan="4" style="text-align: left;"><span style="font-family: "Times New Roman"; font-size: 0px;"><img height="10" style="height: 10px;" src="https://immense.ai/email/spacer.gif"></span></td>
</tr>
<tr>
<td colspan="4" style="text-align: left;">
<p style="text-align: left; line-height: 10px; margin: 0px; width: 466px; display: block;">
<span style="font-family: "Times New Roman"; font-size: 12pt;"><img width="466" height="5" style="width: 466px; height: 5px; margin-top: 0px; margin-bottom: 0px; display: block;" src="https://immense.ai/email/spacer.gif"></span></p>
<div style="text-align: left; line-height: 12px; margin: 0px; display: block; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 9px; color: rgb(110, 124, 134);">
Personal data: emails, by default, contain basic personal data and are not necessarily secure. If, in answering this email, you provide additional personal information, we will process that information for the purposes for which you have supplied it and as
 set out in our <a href="https://immense.ai/privacy-policy/">Privacy Policy</a>, which also contains information about your rights.<br>
<br>
This communication, and the information it contains, is (a) intended for the person(s) and/or organisation(s) to whom it is addressed and is for no other person(s) or organisation(s) and (b) may be confidential, legally privileged and protected by law, including
 law of copyright. Unauthorised use, copying, forwarding or disclosure of any of it may be unlawful. If you have received this communication in error, please contact us immediately at <a href="mailto:privacy@immense.ai">privacy@immense.ai</a>.<br>
<br>
Immense Simulations Barcelona SL, ES B67427807, C/Corsega, 299, 6e, 08008 Barcelona, Spain is a subsidiary of Immense Simulations Limited, a limited company registered in England and Wales with registered number 09782647,</div>
<div style="text-align: left; line-height: 12px; margin: 0px; display: block; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 9px; color: rgb(110, 124, 134);">
<span style="font-family: Arial, sans-serif; font-size: 9.33333px; background-color: rgb(255, 255, 255);">and registered address at International House, 36-38 Cornhill, London, England, EC3V 3NG.</span>.</div>
</td>
</tr>
</tbody>
</table>
<div style="font-family:Calibri, Arial, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255)" dir="ltr" id="divtagdefaultwrapper">
</div>
</div>
</div>
</body>
</html>