home *** CD-ROM | disk | FTP | other *** search
/ Freelog 100 / FreelogNo100-NovembreDecembre2010.iso / Graphisme / GoogleSketchUp / GoogleSketchUpWFR.exe / GoogleSketchUp8.msi / SketchUpMeta.cab / dynamiccomponents.rb_1.78D17A5F_0E0A_44D2_877D_2C56D45D16B7 < prev    next >
Encoding:
Text File  |  2010-08-26  |  1.6 KB  |  39 lines

  1. # Copyright 2005-2008, Google, Inc.
  2.  
  3. # This software is provided as an example of using the Ruby interface
  4. # to SketchUp.
  5.  
  6. # Permission to use, copy, modify, and distribute this software for 
  7. # any purpose and without fee is hereby granted, provided that the above
  8. # copyright notice appear in all copies.
  9.  
  10. # THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
  11. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  12. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  13.  
  14. #-----------------------------------------------------------------------------
  15. # Name        :   Dynamic Components Extension
  16. # Description :   A script that loads the Dynamic Components as an
  17. #                 exptension to SketchUp
  18. # Menu Item   :   N/A
  19. # Context Menu:   N/A
  20. # Usage       :   N/A
  21. # Date        :   10/16/2008
  22. # Type        :   N/A
  23. #-----------------------------------------------------------------------------
  24. require 'sketchup.rb'
  25. require 'extensions.rb'
  26. require 'LangHandler.rb'
  27.  
  28. $dc_strings = LanguageHandler.new("dynamiccomponents.strings")
  29. $dc_extension = SketchupExtension.new $dc_strings.GetString("Dynamic Components"), 
  30.   "DynamicComponents/ruby/dcloader.rb"
  31. $dc_extension.version = '1.0'
  32. $dc_extension.description = $dc_strings.GetString("Provides ability to " +
  33.   "interact with specially-authored components. Dynamic Components can have " +
  34.   "behaviors such as smart scaling, animation, and configuration. SketchUp " +
  35.   "Pro users additionally are given the ability to create their own Dynamic " +
  36.   "Components.")
  37.  
  38. Sketchup.register_extension $dc_extension, true
  39.