This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#---------Plugin Info--------------------------------------------------------- | |
#----------------------------------------------------------------------------- | |
# Name : | |
# Copyright : (c) 2013 | |
# Designed : Author | |
# Icons by : | |
# Description : Opis | |
# Menu Item : Plugins > YOUR_PLUGIN MENU | |
# Context Menu: N/A | |
# Usage : | |
# Date : | |
#----------------------------------------------------------------------------- | |
# Permission to use, copy, modify this software for | |
# any non-commercial purpose is hereby granted | |
#----------------------------------------------------------------------------- | |
# CHANGELOG: | |
# | |
#----------------------------------------------------------------------------- | |
require "sketchup.rb" | |
require "YOUR_LIB.rb" | |
$tStrings = LanguageHandler.new("YOUR_PLUGIN.strings") | |
#Register the Tools | |
YOUR_PLUGIN_Extension = SketchupExtension.new $tStrings.GetString("YOUR_PLUGIN"), "YOUR_PLUGIN/YOUR_PLUGIN_Base.rb" | |
YOUR_PLUGIN_Extension.description=$tStrings.GetString("description string") | |
YOUR_PLUGIN_Extension.name = "YOUR_PLUGIN" | |
YOUR_PLUGIN_Extension.creator ="Author" | |
YOUR_PLUGIN_Extension.version = "0.0" | |
YOUR_PLUGIN_Extension.copyright = "© Author 2013" | |
Sketchup.register_extension YOUR_PLUGIN_Extension, true |
Lines 24, 27 and 28 are used to get strings for plugin / extension description. These are used if You make a localised versions in other languages. Personally I have never used it, so I cannot quarantee that it is 100% correct.
Lines 29 to 32 gives a description of Your plugin that You will see when you will install this extention to Sketchup.
And finally line 34 which register your Plugin.
To Be Continued...
No comments:
Post a Comment