How do I get the name/position of a script bound to a button, regardless of 
what node is currently selected when the button is used?

The goal is make it clear in the Log pane where the status message is 
coming from (the script).

So far I'm using `c.p.h` to report the name like this:

g.es_print("====", c.p.h, "====")


This works fine when I fire the script with Ctrl-B. Howevre after binding 
the script to a button it reports the currently selected node, which can be 
anywhere, and not the script's name.

thanks!

-matt

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0ff8fc05-4e01-496b-a286-0b58e7d164e3%40googlegroups.com.

Reply via email to