Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
developer:monkeyforrhino4 [2016/03/21]
sandy
developer:monkeyforrhino4 [2016/04/04] (current)
sandy
Line 6: Line 6:
 =====What is Monkey?​===== =====What is Monkey?​=====
  
-Monkey is a script editor in Rhino 4 which can be used to edit, run, debug, and compile scripts. It contains all the standard programmer editor features such as Find/​Replace (with regular expressions),​ multi-document interface, code trees, and integrated helpfiles. Monkey also comes with a separate application called the //Monkey Script Compiler//. This stand-alone ​exe turns .rvb scripts into .rhp plug-ins. More information on the script compiler is [[developer:​monkeyscriptcompiler|here]].+Monkey is a script editor in Rhino 4 which can be used to edit, run, debug, and compile scripts. It contains all the standard programmer editor features such as Find/​Replace (with regular expressions),​ multi-document interface, code trees, and integrated helpfiles. Monkey also comes with a separate application called the //Monkey Script Compiler//. This standalone ​exe turns .rvb scripts into .rhp plug-ins. More information on the script compiler is [[developer:​monkeyscriptcompiler|here]].
  
 This wiki page focuses on the Monkey plug-in features. Monkey is a DotNET plug-in, so you need the Microsoft DotNET Framework 2.0 installed on your machine. Note that many computers already are DotNET compliant, so you only need to download and install this if Monkey doesn'​t run. (You'​ll get an error message telling you when this happens.) This wiki page focuses on the Monkey plug-in features. Monkey is a DotNET plug-in, so you need the Microsoft DotNET Framework 2.0 installed on your machine. Note that many computers already are DotNET compliant, so you only need to download and install this if Monkey doesn'​t run. (You'​ll get an error message telling you when this happens.)
Line 24: Line 24:
 =====The Script Compiler===== =====The Script Compiler=====
  
-The Script Compiler is a stand-alone ​program (not a Rhino plug-in)that lets you compile any number of scripts into a single Rhino plug-in. The Script Compiler has its own wiki pages.+The Script Compiler is a standalone ​program (not a Rhino plug-in) that lets you compile any number of scripts into a single Rhino plug-in. The Script Compiler has its own wiki pages.
  
  
Line 38: Line 38:
 =====The Script Editor===== =====The Script Editor=====
  
-The Monkey script editor is a Rhino plug-in, not a stand-alone ​application,​ meaning it can only be run inside of Rhino 4. You can either run the _Monkey command or open the editor via the Monkey menu. After a short delay the Monkey Editor will display. ​ (Yes, we know. We're working hard to get it to load faster.) Since the editor is likely to be displayed as a large window, we've made it nondockable. By default, the window links to Rhino, meaning that if you minimize Rhino, Monkey will also disappear. It is possible to unlink Rhino and Monkey, but we'll get to that in the menu section.+The Monkey script editor is a Rhino plug-in, not a standalone ​application,​ meaning it can only be run inside of Rhino 4. You can either run the **_Monkey** command or open the editor via the Monkey menu. After a short delay the Monkey Editor will display. ​ (Yes, we know. We're working hard to get it to load faster.) Since the editor is likely to be displayed as a large window, we've made it nondockable. By default, the window links to Rhino, meaning that if you minimize Rhino, Monkey will also disappear. It is possible to unlink Rhino and Monkey, but we'll get to that in the menu section.
  
  
Line 61: Line 61:
  
  
-Note that the autocompletion list pops up as soon as //Rhino// is typed anywhere. The list updates as you type to reflect the best possible match with your current text. In this case, we want to use the Rhino.GetObject() method but we have to type at least //geto// to get it. (Rhino.GetAngle() comes earlier in the alphabet and is the initial provided solution.) Once the Rhino.GetObject() method is highlighted in the pop up list, we can press **Enter** and the complete method name is inserted into the script. Once the method name is in place, we have to supply the arguments. IntelliSense displays a tooltip showing us the required arguments and which one we are currently setting.+Note that the autocompletion list pops up as soon as **Rhino** is typed anywhere. The list updates as you type to reflect the best possible match with your current text. In this case, we want to use the Rhino.GetObject() method but we have to type at least **geto** to get it. (Rhino.GetAngle() comes earlier in the alphabet and is the initial provided solution.) Once the Rhino.GetObject() method is highlighted in the pop up list, we can press **Enter** and the complete method name is inserted into the script. Once the method name is in place, we have to supply the arguments. IntelliSense displays a tooltip showing us the required arguments and which one we are currently setting.
  
  
developer/monkeyforrhino4.txt ยท Last modified: 2016/04/04 by sandy