For example, if your plist is in the Resources folder of your rhp, use the following example.In Rhino for Windows, this UI is normally stored in an rui file that includes the buttons, the icons, and their associated commands.If you do not yet have a plugin, please begin with the Your First Plugin (Mac) guide.If not, dont worry: creating a tool palette collection is relatively easy.
This launches a developer tool similar to the Command Editor where tool palette collections can be created, organized, and saved to plist files. A finder window opens where you can navigate to the rui file to import. ![]() Click on the name of the Untitled palette and give your tool palette a name. Add a Text title, some Menu text, some informative tooltip, and - most importantly - the macro or command (from your plugin) that you wish to run when this button is clicked. Rhino for Mac prefers PDF icons as they will scale nicely between Retina and non-Retina displays. ![]() In order to add a menu to a tool palette button you must save and reload the tool palette in order for the menu to show up in the available menus. Navigate to the folder containing your rui, select it, click Open. Notice that there is a Modified Tool Palette with the name of your toolbar(s). If you select buttons in this area, you will notice their editable details appear in the Button Editor (area at lower-right). ![]() For Windows Use Command Editor To Create Palette Free To PlaceNOTE: You are free to place your plist anywhere you think appropriate. When prompted, Move the plist to the plugin Resources project folder. This opens up the csproj file for your project as xml text in the code editor. If you check in the References section of your project in the Solution Explorer, you should see references to RhinoMac and Rhino.UI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |