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: 3D model of hill-like structures using SketchUp C SDK

      The Ruby API can only be used from within SketchUp, correct.

      As for the C SDK, where are you stuck? What prevents you from creating terrain geometry? The C API is generic, there is no limitations imposed to what it creates - so creating terrains will be possible.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Ruby script to output outer face loop?

      In deed - I typed in a hurry and made a mess out of it. I made changes in a hurry now as well, but I still haven't checked it properly. Sorry. I'll get back to this next week. Now I need to get to bed as I'm catching a plane early in the morning.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Ruby script to output outer face loop?
      <span class="syntaxdefault"><br />model </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_model<br />face </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">selection</span><span class="syntaxkeyword">[</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">]<br /><br /></span><span class="syntaxdefault">if face<br />  edges_and_curves </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">[]<br /></span><span class="syntaxdefault">  face</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">outer_loop</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">edgeuses</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">each </span><span class="syntaxkeyword">{</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">|</span><span class="syntaxdefault">edgeuse</span><span class="syntaxkeyword">|<br /></span><span class="syntaxdefault">    edge </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> edgeuse</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">edge<br />    edges_and_curves </span><span class="syntaxkeyword"><<</span><span class="syntaxdefault"> edge</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">curve </span><span class="syntaxkeyword">||</span><span class="syntaxdefault"> edge<br />  </span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">  </span><span class="syntaxcomment"># Because we will have added the Curve entities for each edge segment.<br /></span><span class="syntaxdefault">  edges_and_curves</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">uniq</span><span class="syntaxkeyword">!<br /></span><span class="syntaxdefault">end<br /></span>
      
      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Get Link for Official Sketchup Bug Reporting

      It will be. No one knew that existed any more.

      posted in SketchUp Bug Reporting
      tt_suT
      tt_su
    • RE: Get Link for Official Sketchup Bug Reporting

      That form is no longer active. Instead go via: http://help.sketchup.com/en/contact

      posted in SketchUp Bug Reporting
      tt_suT
      tt_su
    • RE: One-shot toolbar buttons?

      Oh, right - yes I noticed that there's a bug under OSX. Sorry, I mostly use PC so I'd forgotten. I think there's an issue for it, but I'll check again and bump it.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: One-shot toolbar buttons?

      @slbaumgartner said:

      Is there a way to create a button in a toolbar that works like the zoom extents button? That is, when you click it the underlying Tool/Command does its one-shot action and then the Toolbar button returns to un-selected?

      That is the default behaviour, unless you implement validation procs or make the button activate a tool. When you activate a tool the button will remain pressed for as long as that tool is active.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Guidelines for adding a method to existing classes?

      You can also use .extend() on single instances:
      http://www.ruby-doc.org/core-1.8.6/Object.html#method-i-extend

      Note that extending Entity instances would not be allowed by EW because the instances are global to everyone using the SketchUp environment. But for other types such as Point3d, Vector3d, String etc that would work.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Ruby script to output outer face loop?

      True that - they are meta-entities.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Ruby script to output outer face loop?

      An Edge can be part of an ArcCurve or Curve.

      Use Edge.curve to check this, it will return the curve instance if it is and nil if it't not.
      http://www.sketchup.com/intl/en/developer/docs/ourdoc/edge.php#curve

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Intersect_with revisited

      I think the topic of intersect_with is blog post worthy. I'm making a note of it.

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

      hm.. missing a stacktrace there.

      Can you try these commands in the Ruby Console:

      load 'tt_cleanup.rb'

      load 'tt_cleanup/core.rb'

      ?

      See if you get a more detailed error message?

      Also, what version of TT_Lib and CleanUp do you have installed?

      posted in Plugins
      tt_suT
      tt_su
    • RE: Make a plugin in to render scenes in vray

      I'd recommend you contact ChaosGroup and make a feature request.

      posted in Plugins
      tt_suT
      tt_su
    • RE: Detecting active model switches on OS X

      @tig said:

      Assuming your code is in a module set @model=Sketchup.active_model at every critical step...
      This ensures that you don't get 'cross-threaded' references to another MAC model.

      +1
      Remember many classes related to the model will have a .model method to return the model that given object belong to.

      That being said, we do need a way to iterate open models.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Statistics on plugin users

      @garry k said:

      Where can I go to find a set of plugin standards?

      The Extension Warehouse has a set of technical requirements which is based on patterns to avoid plugins clashing. These requirements are parts of what we consider good practice:
      http://extensions.sketchup.com/developer

      A couple of years ago I wrote a short article with some key things to remember:
      http://www.thomthom.net/thoughts/2012/01/golden-rules-of-sketchup-plugin-development/

      Followed up by this check-list:
      http://www.thomthom.net/thoughts/2013/02/sketchup-plugin-checklist/

      (Edit: did you mean standards in terms of security when transferring data over the internet?)

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Ruby script to output outer face loop?

      What is the question here? What is it that you're stuck with?

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

      What settings did you use? I just ran it with default settings on a fresh installation of SU and no faces were lost.

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] Raytracer

      Filed issue: https://bitbucket.org/thomthom/raytracer/issue/1/ignore-the-components-being-dropped

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] Raytracer

      It appear to be because the ray traced hit the component it tried to drop. Apparently I forgot to make it ignore itself. If I moved the axis to the bottom of the component it worked fine.

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] Raytracer

      Hard to tell without a model...

      posted in Plugins
      tt_suT
      tt_su
    • 1 / 1