Difference between revisions of "Talk:Scripting"

From Freeplane - free mind mapping and knowledge management software
m (Reverted edits by Irajawapys (Talk) to last version by Nz0ptk)
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://oleqatyqi.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 
----
 
=[http://oleqatyqi.co.cc CLICK HERE]=
 
----
 
</div>
 
 
== Scripting Questions and Answers  ==
 
== Scripting Questions and Answers  ==
  
Line 24: Line 16:
 
=== Execution Modes  ===
 
=== Execution Modes  ===
  
On the main [[Scripting|Scripting]] page, under the heading [[Scripting#Execution_modes|Execution Modes]], I'm confused by the phrase ''Execute on one selected node''. From following along with the tutorial, it seems to me that a better name for this would be '''''Execute the script once, accessing all selected nodes'''''. Is my interpretation essentially correct? Otherwise, please set me straight!&lt;br&gt;
+
On the main [[Scripting|Scripting]] page, under the heading [[Scripting#Execution_modes|Execution Modes]], I'm confused by the phrase ''Execute on one selected node''. From following along with the tutorial, it seems to me that a better name for this would be '''''Execute the script once, accessing all selected nodes'''''. Is my interpretation essentially correct? Otherwise, please set me straight!<br>
  
 
Thanks, --[[User:Jayseye|Jayseye]] 23:18, 11 March 2010 (UTC)  
 
Thanks, --[[User:Jayseye|Jayseye]] 23:18, 11 March 2010 (UTC)  
  
Hard question, but I think a &quot;no&quot; is appropriate. It took a while until I had the impression I had found a proper name for this mode. It's irrelevant here that the script may access more or less nodes since every script has access to every node by using the appropriate controller methods (like currentNode, rootNode). The execution modes are only dealing with the implicit &quot;node&quot; variable. Selecting ''Execute on one selected node'' should mean:  
+
Hard question, but I think a "no" is appropriate. It took a while until I had the impression I had found a proper name for this mode. It's irrelevant here that the script may access more or less nodes since every script has access to every node by using the appropriate controller methods (like currentNode, rootNode). The execution modes are only dealing with the implicit "node" variable. Selecting ''Execute on one selected node'' should mean:  
  
 
*Only execute this script once - no matter how many nodes are selected.  
 
*Only execute this script once - no matter how many nodes are selected.  
*The script is not interested in the &quot;node&quot; variable (although node is set to some node). - Select whatever node you want before calling the script - the script doesn't care.
+
*The script is not interested in the "node" variable (although node is set to some node). - Select whatever node you want before calling the script - the script doesn't care.
  
I considered ''Execute once'' as an alternative but I thought that ''Execute on one selected node'' would support that &quot;node is set but it doesn't matter&quot; aspect. (That might be wrong.)  
+
I considered ''Execute once'' as an alternative but I thought that ''Execute on one selected node'' would support that "node is set but it doesn't matter" aspect. (That might be wrong.)  
  
The other modes in contrast are meant for scripts that actually refer to the &quot;node&quot; variable. They are executed once for every selected node (in one of these modes recursively).  
+
The other modes in contrast are meant for scripts that actually refer to the "node" variable. They are executed once for every selected node (in one of these modes recursively).  
  
 
I expected this to be complicated since it took me two takes to get the concepts right. I'm sure, you will find the right words to make it comprehensible.  
 
I expected this to be complicated since it took me two takes to get the concepts right. I'm sure, you will find the right words to make it comprehensible.  

Revision as of 18:32, 24 November 2010

Scripting Questions and Answers

In this section Volker Börchers, our scripting specialist, has kindly agreed to answer questions. For anyone reading this Wiki section on Scripting, please feel free to add your own questions here!

Vertical Spacing in Map View

Ctrl+Drag works great, but can this be scripted? Some of my children nodes/branches really run together, and automatically vertically spacing them would be great. Thanks!

Automatic Layout Styles

Is it possible to take the automatic layout styles that I have created, and extend them to affect more levels than the default 4-5 via scripting? If so, the first thing would be to find out where they're stored?

I appreciate all of your work! Thank you.

Execution Modes

On the main Scripting page, under the heading Execution Modes, I'm confused by the phrase Execute on one selected node. From following along with the tutorial, it seems to me that a better name for this would be Execute the script once, accessing all selected nodes. Is my interpretation essentially correct? Otherwise, please set me straight!

Thanks, --Jayseye 23:18, 11 March 2010 (UTC)

Hard question, but I think a "no" is appropriate. It took a while until I had the impression I had found a proper name for this mode. It's irrelevant here that the script may access more or less nodes since every script has access to every node by using the appropriate controller methods (like currentNode, rootNode). The execution modes are only dealing with the implicit "node" variable. Selecting Execute on one selected node should mean:

  • Only execute this script once - no matter how many nodes are selected.
  • The script is not interested in the "node" variable (although node is set to some node). - Select whatever node you want before calling the script - the script doesn't care.

I considered Execute once as an alternative but I thought that Execute on one selected node would support that "node is set but it doesn't matter" aspect. (That might be wrong.)

The other modes in contrast are meant for scripts that actually refer to the "node" variable. They are executed once for every selected node (in one of these modes recursively).

I expected this to be complicated since it took me two takes to get the concepts right. I'm sure, you will find the right words to make it comprehensible.

BTW: I really enjoyed looking over the changes you've made so far. --Boercher 00:33, 12 March 2010 (UTC)