[Plugin] TT_Lib²

[Plugin] TT_Lib²

Postby thomthom » Wed Sep 01, 2010 6:48 pm

Overview
This is not a standalone plugin. It is only needed by some plugins.

Documentation
http://www.thomthom.net/software/sketch ... oc/TT.html

Remove older TT_Lib² versions if you already have TT_Lib² installed.

Guide: How to install RBZ Files

Download

27
Last edited by thomthom on Tue Nov 26, 2013 11:56 am, edited 5 times in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.1.0) — 03 September 2010

Postby thomthom » Fri Sep 03, 2010 6:31 pm

Version 2.1.0
* Added module: TT::UVQ
* Added class: TT::UV_Plane
* Added method: TT::Entities.bounds
* Added class: TT::Gizmo::Manipulator
* Added module: TT::Selection
* Fixed: Ray.test
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.1.0) — 03 September 2010

Postby JClements » Sat Sep 04, 2010 5:04 pm

Thomas, we missed you at the Basecamp. Many people asked about you. Hopefully, there can be Europe Basecamp in the future for the loyal people on the other side of the Atlantic.

Regard, John
0
John | Illustrator | Beaverton, Oregon

JClements 
Premium Member
Premium Member
 

Re: [Plugin] TT_Lib2 (2.1.0) — 03 September 2010

Postby thomthom » Sat Sep 04, 2010 5:24 pm

Thanks John - I really wished I could have been there.
Been fun to see some of the pictures, the faces behinds the nicknames. Looking forward to more and hopefully video from the talks.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.1.1) — 04 September 2010

Postby thomthom » Sat Sep 04, 2010 7:04 pm

Version 2.1.1
  • Fixed bug: Ray.test (Workaround for SU8.0 bug)
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.1.1) — 04 September 2010

Postby EscapeArtist » Sat Sep 04, 2010 7:09 pm

Thanks!
0
User avatar
EscapeArtist 
Top SketchUcator
 

Re: [Plugin] TT_Lib2 (2.2.0) — 06 September 2010

Postby thomthom » Mon Sep 06, 2010 9:35 pm

Version 2.2.0
  • Added module: TT::Bounds
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.3.0) — 08 September 2010

Postby thomthom » Wed Sep 08, 2010 4:43 pm

Version 2.3.0
  • Added method: TT::Geom3d.spiral_sphere
  • Fixed: TT::Ray.test
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby thomthom » Wed Sep 22, 2010 8:19 pm

Version 2.4.0
  • Added module: TT::Binary
  • Added class: TT::JSON
  • Added module: TT::GUI
  • Added class: TT::Window
  • Added class: TT::Inputbox
  • Added module: TT::System
  • Added module: TT::Locale
  • Added module: TT::Cursor
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby bestmate » Thu Sep 30, 2010 6:15 pm

Great job you do here Thomas, i do not how you find the a time ( amazing)
I have the select curve tool and i have TT_lib in one folder,TT_lib selectcurve in another and in that in its own folder TT_lib2 and tt_select_curve on its own in the plug in folder with all the above . (that was complicated) i get a message cannot find ? could you help me please my fine friend ( ps great glasses) regards Phil
0

bestmate 
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby pilou » Mon Oct 04, 2010 12:56 am

Maybe when you unzipp the file you have one path folder more
TT_Lib2-2.4.0) / TT_Lib2 /...
It was my case ! :oops:
At any time I forget to keep only TT_Lib2/... !!! :oops: :oops: :oops:
TT_Lib2-2.4.0 must be not taken because that make one path folder more :roll:
And after with only in Plugins folder TT_Lib2/... all works fine :fro:

That what i want and all works fine!
I Select all then Plugins/ Thomthom Plugins/Guide Tools/ CPoint at Arc Center and all points are drawn! :enlight:
Bravo ThomThom! :thumb: (works fine in the V6)

0
Is beautiful that please without concept!
My Little site :)
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby thomthom » Mon Oct 04, 2010 7:20 am

Bestmate wrote:Great job you do here Thomas, i do not how you find the a time ( amazing)
I have the select curve tool and i have TT_lib in one folder,TT_lib selectcurve in another and in that in its own folder TT_lib2 and tt_select_curve on its own in the plug in folder with all the above . (that was complicated) i get a message cannot find ? could you help me please my fine friend ( ps great glasses) regards Phil

hm.. didn't notice this message until now.

As Pilou said, check that you have file files in the correct location. At the bottom of each page for them plugins there is an example of their footprint in the Plugins folder.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby pilou » Mon Oct 04, 2010 2:03 pm

Hello Thomthom
Someone say thank you :)
0
Is beautiful that please without concept!
My Little site :)
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby thomthom » Mon Oct 04, 2010 2:11 pm

Pilou wrote:Hello Thomthom
Someone say thank you :)

:D :thumb:
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby Pixero » Mon Oct 18, 2010 10:50 am

I'm getting this error when starting SU.
LoadError.JPG


I have the latest version ov Selection Toys along with TT_Lib version 1 and 2.4.0.
SU 7.1 Windows.
0
User avatar
Pixero 
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby thomthom » Mon Oct 18, 2010 11:10 am

SelectionToys does not use TT_Lib2 at all.

You need to ensure you have the correction version of TT_Lib (1.x) and that it's installed correctly.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby Pixero » Mon Oct 18, 2010 12:19 pm

Reinstalling the latest 1.x version helped.

By the way I'm tired of rearrangeing my toolbars once again. How does the save toolbar in SU8 work?
0
User avatar
Pixero 
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby thomthom » Mon Oct 18, 2010 12:30 pm

Pixero wrote:By the way I'm tired of rearrangeing my toolbars once again. How does the save toolbar in SU8 work?

Poorly.

View->Toolbars->Save Positions
View->Toolbars->Restore Positions

I've found it to not work so well when adding/removing plugins with toolbars...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby Jim » Fri Oct 22, 2010 9:04 pm

Thom, have you generated docs for this lib? I appreciate that you are thinking in terms of re-use, and your code is clean and clear. Is this licensed so that other people can use it also?
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby thomthom » Fri Oct 22, 2010 9:25 pm

Jim wrote:Thom, have you generated docs for this lib? I appreciate that you are thinking in terms of re-use, and your code is clean and clear. Is this licensed so that other people can use it also?

I have some docs generated. But the comments are not complete. It's still taking shape and some things will be changed.
I'll try to make a note on the modules that are WIP and include more examples. If you have questions about particulars just let me know and I can push them up on the update list.

For the brave, here is the current output: http://www.thomthom.net/software/sketchup/tt_lib2/doc/ (for TT_Lib 2.5 mind you)

(Anyone knows how to modify YARDs templates so the constant lists will be more compact?)
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby Jim » Fri Oct 22, 2010 9:38 pm

Guess I could run yard myself... heh.
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby thomthom » Sun Nov 14, 2010 11:15 am

Just a preview of one of the GUI gizmos I'm working on.



Code to generate the windows:
Code: Select all
#-----------------------------------------------------------------------------
# Compatible: SketchUp 7 (PC)
#             (other versions untested)
#-----------------------------------------------------------------------------
#
# Thomas Thomassen
# thomas[at]thomthom[dot]net
#
#-----------------------------------------------------------------------------

require 'sketchup.rb'
require 'TT_Lib2/core.rb'

TT::Lib.compatible?('2.4.0', 'Inputbox Test')

#-----------------------------------------------------------------------------


module TT::Plugins::InputboxTest
 
  ### CONSTANTS ### --------------------------------------------------------
 
  VERSION = '1.0.0'
 
 
  ### MENU & TOOLBARS ### --------------------------------------------------
 
  unless file_loaded?( File.basename(__FILE__) )
    m = TT.menu('Plugins').add_submenu('TT::GUI')
    m.add_item('TT::GUI::Inputbox')     { self.test_inputbox }
    m.add_item('TT::Plugins::CleanUp')  { self.test_cleanup }
  end
 
 
  ### MAIN SCRIPT ### ------------------------------------------------------
 
  def self.test_inputbox
    options = {
      :title => 'TT::GUI::Inputbox',
      :pref_key => 'TT::GUI::Inputbox',
      :modal => true,
      :accept_label => 'Save',
      :cancel_label => 'Abort'
    }
    i = TT::GUI::Inputbox.new(options)
    i.add_control( {
      :label => 'Hello',
      :value => 'World',
      :description => 'Lorem ipsum <b>dolor</b> sit amet.',
    } )
    i.add_control( {
      :label => 'Checkbox1',
      :value => true
    } )
    i.add_control( {
      :label => 'Checkbox2',
      :value => false
    } )
    i.add_control( {
      :label => 'Integer',
      :value => 123
    } )
    i.add_control( {
      :label => 'Float',
      :value => 1.23
    } )
    i.add_control( {
      :label => 'Length',
      :value => 1.23.m
    } )
    ms = Sketchup.active_model.materials
    i.add_control( {
      :label => 'Dropdown List1',
      :value => (ms.current) ? ms.current.display_name : nil,
      :options => ms.map { |m| m.display_name },
      :description => 'Unordered ordered.'
    } )
    i.add_control( {
      :label => 'Dropdown List2',
      :value => (ms.current) ? ms.current.display_name : nil,
      :options => ms.map { |m| m.display_name },
      :order => 1,
      :natrual_order => true,
      :description => 'Naturally ordered.'
    } )
    i.add_control( {
      :label => 'List1',
      :value => (ms.current) ? ms.current.display_name : nil,
      :options => ms.map { |m| m.display_name },
      :order => -1,
      :natrual_order => true,
      :description => 'Naturally ordered reversed.',
      :size => 5
    } )
    i.add_control( {
      :label => 'List2',
      :value => ms.to_a[0..1].map { |m| m.display_name },
      :options => ms.map { |m| m.display_name },
      :order => -1,
      :natrual_order => true,
      :description => 'Multiple Selection.',
      :size => 5,
      :multiple => true
    } )
    i.add_control( {
      :label => 'Radioboxes1',
      :value => 'Hello World',
      :options => ['Hello World', 'Lorem Ipsum', 'Foo Bar'],
      :type => TT::GUI::Inputbox::CT_RADIOBOX
    } )
    i.add_control( {
      :label => 'Radioboxes2',
      :value => 'Monkeys',
      :options => ['Cheese', 'Monkeys'],
      :type => TT::GUI::Inputbox::CT_RADIOBOX
    } )
    i.prompt { |results|
      puts 'Results returned:'
      p results
      #puts i.get_html
    }
  end
 
 
    def self.test_cleanup
    options = {
      :title => 'TT::Plugins::CleanUp',
      :pref_key => 'TT::Plugins::CleanUp',
      :modal => true,
      :accept_label => 'CleanUp',
      :cancel_label => 'Cancel',
      :align => 0.3
    }
    i = TT::GUI::Inputbox.new(options)
    i.add_control( {
      :label => 'Scope',
      :value => 'Local',
      :options => ['Selected', 'Local', 'Model'],
      :type => TT::GUI::Inputbox::CT_RADIOBOX,
      :group => 'General'
    } )
    i.add_control( {
      :label => 'Validate Results',
      :value => true,
      :group => 'General'
    } )
    i.add_control( {
      :label => 'Merge Coplanar Faces',
      :value => true,
      :group => 'Coplanar Faces'
    } )
    i.add_control( {
      :label => 'Ignore Normals',
      :value => false,
      :group => 'Coplanar Faces'
    } )
    i.add_control( {
      :label => 'Ignore Materials',
      :value => false,
      :group => 'Coplanar Faces'
    } )
    i.add_control( {
      :label => 'Ignore UV',
      :value => true,
      :group => 'Coplanar Faces'
    } )
    i.add_control( {
      :label => 'Remove Duplicate Faces',
      :value => false,
      :group => 'Faces'
    } )
    i.add_control( {
      :label => 'Repair Split Edges',
      :value => true,
      :group => 'Edges'
    } )
    i.add_control( {
      :label => 'Remove Lonely Edges',
      :value => true,
      :group => 'Edges'
    } )
    i.add_control( {
      :label => 'Remove Edge Materials',
      :value => false,
      :group => 'Edges'
    } )
    i.add_control( {
      :label => 'Smooth Edges by Angle',
      :value => 0.0,
      :group => 'Edges'
    } )
    i.prompt { |results|
      puts 'Results returned:'
      p results
      #puts i.get_html
    }
  end
 
 
  ### DEBUG ### ------------------------------------------------------------
 
  def self.reload
    TT::Lib.reload
    load __FILE__
  end

end # module

#-----------------------------------------------------------------------------

file_loaded( File.basename(__FILE__) )

#-----------------------------------------------------------------------------


Also thinking of adding more wrappers to create windows entirely from Ruby - buttons, lists, dropdowns etc...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby Jim » Sun Nov 14, 2010 3:33 pm

thomthom wrote:Also thinking of adding more wrappers to create windows entirely from Ruby - buttons, lists, dropdowns etc...


This approach will win. :thumb:
0
Hi

Jim 
Global Moderator
 

Re: [Plugin] TT_Lib2 (2.4.0) — 22 September 2010

Postby thomthom » Sun Nov 14, 2010 4:04 pm

When I made Vertex Tools I had a similar system for the toolbar system. A set of classes that acted as wrappers for the controls. The main classes where Container and Control - they would have most of the code. From there it was easier to create sub-classes like toolbars and buttons. I then had a very nice abstract layer where I created a toolbar class - where I added Button objects.
Complex systems though - but I hope to have a base system by the new year.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.5.0) — 05 February 2011

Postby jeffschaid01 » Sat Feb 05, 2011 9:41 pm

Hello,
I'm having a problem with the program crashing at 49% when exporting as a vrml. I've imported my bmp image, sized, indexed points and generated the mesh. Any suggestions?

Thanks,
Jeff
0

jeffschaid01 
 

Re: [Plugin] TT_Lib2 (2.5.0) — 05 February 2011

Postby thomthom » Sun Feb 06, 2011 11:01 am

jeffschaid01 wrote:Hello,
I'm having a problem with the program crashing at 49% when exporting as a vrml. I've imported my bmp image, sized, indexed points and generated the mesh. Any suggestions?

Thanks,
Jeff

Are you referring to Bitmap to Mesh?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.5.0) — 05 February 2011

Postby Gaieus » Sun Feb 06, 2011 4:46 pm

Yes, he is.
0
User avatar
Gaieus 
 

Re: [Plugin] TT_Lib2 (2.5.0) — 05 February 2011

Postby thomthom » Mon Feb 07, 2011 7:33 pm

Version 2.5.1
  • Fixes Webdialog issues with IE7
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.5.2) — 10 February 2011

Postby thomthom » Thu Feb 10, 2011 10:04 am

Version 2.5.2
Important bugfix!
  • Fixed bug in the method that repair broken edges.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TT_Lib2 (2.5.3) — 10 February 2011

Postby thomthom » Thu Feb 10, 2011 2:23 pm

Version 2.5.3
Important bugfix!
  • Fixed again repair broken edges.
3
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

cron

Who is online

Users browsing this forum: marieantoinette, SrGiraffe and 8 guests