sketchucation logo sketchucation
    • Login
    1. Home
    2. tt_su
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🚨 Skimp | 25% Off until March 30 Buy Now
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1,034
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Speed up

      @icehuli said:

      I guess the bottleneck is the drawing operations in SU.

      Do some benchmarking to determine for sure where the majority of the time is spent. Optimizing stuff without know it's the actual bottleneck might just waste you a lot of time, especially when the alternative you consider is using the C API.

      I've had big speed improvement by learning how Ruby works. What the bottlenecks in the Ruby API is - such as creating objects and string manipulations etc.
      Cache calculation and using Hash lookups can often get you there in a big way.

      However, if you do a lot of calculation, then you might want to do some work in C. I made a Ruby C Extension to calculate the soft selection radius in Vertex Tools - it made for hounded of times of speed improvements.

      How much gain the C API gives, I'm not sure. I've not used it yet, but I'm very curious and I have been meaning to try exactly what you propose. But I'm not sure if the overhead of writing to file and loading will give much benefit. So if you go this route I'm very curious to hear your results. But do make sure you have identified your bottlenecks. Note that the Ruby API and C API both calls the same core SketchUp functions - so it might be that it's the SketchUp core itself that's the bottleneck.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      That's odd. How is PluginStore determining if a plugin is enabled/disabled?

      By the way, are you doing string manipulations? Passing a Ruby multibyte string, encoded in UTF-8, should work fine as long as the HTML is marked up in UTF-8 as well. JS handles UTF-8 by default I think as well. So simply passing strings back and forth should not be a problem.

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      huh! That's very odd, as I'm sure that superscript 3 is in unicode as well... :s

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      Thanks TIG!

      That superscript 2 has caught many off guard.

      http://tmfassociates.com/blog/wp-content/uploads/2011/03/monty-python-spanish-inquisition.jpg

      "Nobody expects Unicode multi-byte characters!"

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      Ah, an multi-byte character issue then.

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      Maybe the PluginStore is confused over the root TT_Lib2.rb file. It implements SketchupExtension class - it it appear in the Window > Preferences > Extensions list. But unticking it won't disable TT_Lib2 because the plugins that use it load TT_Lib2/core.rb directly.

      I still don't know if that is the case though, I don't know what PluginStore is doing.

      When TT_Lib2 appear disabled in PluginStore - do the plugins that depend on it load?

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      But doesn't happen when it is the only plugin installed?
      If it crashes when you have other plugins installed, can you find out which one that will make it crash?

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Request] Rotate Constrained

      In that case you want to apply a restraint on all the vertical edges to keep their directions. That would be doable. But I think you'd have to create a custom tool as this would be difficult to do with observers intercepting the native tools.

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Request] Rotate Constrained

      @rich o brien said:

      @Dave

      No, I posted a simple example for illustration. I'm dealing with substantially more geometry 😞

      Example? The simple example you posted wouldn't be too hard - but it'd be difficult to make it scale. How is the real life scenario like?

      posted in Plugins
      tt_suT
      tt_su
    • RE: Question about "puts" "Kernel.puts" "Kernel::puts"

      Nothing - just one of Ruby's multiple ways of doing things.
      All Kernel methods are available available in the global scope - that is - they are available everywhere.

      puts == Kernel.puts == Kernel::puts

      To be more specific, All objects inherit Kernel - because all objects inherit Object.

      ` Object.ancestors

      => [Object, Kernel]`

      The . vs :: is just a syntax difference that has no affect on the behaviour.

      In practise people use . for method calls, and :: for constants.

      MyModule::MyClass.mymethod
      MyModule::MyClass::MyConstant

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Get latLong of origin?

      Yes, model.latlong_to_point should work. Though, for the altitude, I'm not sure if SketchUp takes that into account when it geo-locates models. I'd have to dig around to see if you can get the altitude of the geolocated model - so you can get the height right.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Run Validity Check

      Yea, it's not the same thing. I think fixNonPlanarFaces is a testing action - lots of them are.

      I'll file a feature request to get the validation check as a proper method in the API

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      I'm sorry, but what do you mean by "flash back"?

      posted in Plugins
      tt_suT
      tt_su
    • RE: Cloud sketchup like Adobe creative cloud

      They reached Norway! 😄

      posted in Plugins
      tt_suT
      tt_su
    • RE: Cloud sketchup like Adobe creative cloud

      👿

      posted in Plugins
      tt_suT
      tt_su
    • RE: Cloud sketchup like Adobe creative cloud

      @pixero said:

      That would be the worst thing that could happen. Please any admin delete this thread before anyone at Trimble gets any ideas...

      💭

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      hm.. if you can load Selection Toys alone, but not with the rest of your plugins it sounds like a clash. Any chance you can find out which plugin it clashes with?

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      Hm. I'm unable to reproduce this. Maybe it happens only on XP. I have to ask someone to test for me.

      Does it happen if you have only Selection Toys installed?

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      I'm sorry, but I am a bit confused now. Which plugins work and which plugins doesn't work?
      Also, if there are error messages - what do they say?

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] TT_Lib²

      @guanjin said:

      2.9.4+Selection_Toys,In Sketchup8 windows XP, open the dialog, automatic sketchup8 quit after tens of seconds, without any prompting。

      That is strange. I cannot reproduce that. By the way, Selection Toys has never used TT_Lib2. I used TT_Lib1 for a while - but I made it stand-alone earlier this year. What version of Selection Toys do you have? And if you have only Selection Toys loading, does it still crash?

      @guanjin said:

      Edge Tools,Can not be used, loading errors。

      What are these loading errors? (I can't do much without them.) Also, what version of Edge Tools.

      posted in Plugins
      tt_suT
      tt_su
    • 1
    • 2
    • 38
    • 39
    • 40
    • 41
    • 42
    • 51
    • 52
    • 40 / 52