@Kamal-lochan-0 ,
how can i run and use this script ?
By following the clear, step-by-step instructions that you just linked to.
please provide the screen capture
That post you linked was pretty explicit about the steps necessary. But if screen captures are needed, I will intersperse them between the quoted version of the plain text instructions from that post:
Use Plugins admin to install the PythonScript plugin
a3c12d0c-4c77-4ca5-996e-5d3373ba19e6-image.png
Menu to Plugins > Python Script > New Script
512db8aa-3d1f-4e05-81b7-b0f4dbde84f1-image.png
Provide a (file) name for the script; you don’t need to specify an extension – .py will be added automatically
Press the Save button to close out the Save As dialog box.
98d60736-7684-4a9c-b8ee-980da87ac037-image.png
At this point your script file will be showing and is empty; copying and pasting one of the scripts from above seems like a fine idea :-)
after pasting, it will look like:
eaa461d0-85d0-40e3-b54c-3f30ad93e493-image.png
Please note: your post lost the leading spaces when you quoted the script. In Python, indentation carries meaning, so make sure you actually copy/paste the text from my post, not from yours that has lost the spaces. If you disregard this advice, it will not work. It should look like the screenshot above.
Save the file
cff43f73-a456-4086-9372-c7d495feb887-image.png
or
8ea24b13-e7a4-472f-9ffc-6bbcf41ffba8-image.png
To execute your script, menu to Plugins > Python Script >Scripts > (pick the name of your script)
563543d8-e217-4dc1-a504-7c7e069c391f-image.png
And after running that, you will have a file that looks like:
c78137e3-8a3f-4a77-b936-d8b0bafb0b3a-image.png
Those screenshots are just a direct translation of the text of Alan’s instructions into the application.