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: [Plugin] Component Properties

      Good suggestion. Added to the issue tracker: https://bitbucket.org/thomthom/component-properties/issue/1/allow-multiple-instances-to-be-changed

      posted in Plugins
      tt_suT
      tt_su
    • RE: Read_default webdialog position on OSX

      I think I have a trick up my sleeve... but not on this machine... 😕

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Progress bar

      You mean the statusbar? You can certainly output text there, but it does tend to stop refreshing during long tasks. What I hope we can do now that we are a full team on the Ruby API in SketchUp is get a ProgressBar class. But no promises! 😉

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: CleanUp v3.2.0 crashes since TT Library v2.9.8

      Hi there

      TT_Lib 2.9.8 didn't have any changes that should affect CleanUp. I think this is just a coincidence. Did you try rolling back to older version?
      https://bitbucket.org/thomthom/tt-library-2/downloads

      In any case, you appear to have two issues here: crashing and errors in the console.

      1. The error: what are the steps to reproduce this? Does it happen on every model? Does it happen on a specific model? (if so, can you share it?) I've seen some very rare reports about errors that doesn't really make sense - like the ine your reported. It's as if some entities references has been mixed up, corrupted memory perhaps. But whenever I've tried to track that down it has disappeared, either by itself, a reboot, or reinstallation.

      2. The crash, when you did get a BugSplat, did you submit it? Did you enter your email or any other message? I can then look it up and see where it crashes. Without I cannot do much.

      Mind you, SketchUp 8 is nearing four years old this year. Many bugs has been fixed since then. The issue you experience might very well be fixed already.

      posted in Plugins
      tt_suT
      tt_su
    • RE: Does this plugin exists?

      I'm not 100% sure what you are after, perhaps an image of what you want to achieve?

      By the sound of it, I wonder if "Profile Builder" might be the tool for you?

      posted in Plugins
      tt_suT
      tt_su
    • RE: JScript innerHTML not working in WebDialog !

      @onidarbe said:

      So Sketchup uses IE instead of Chrome, although I uninstalled IE? strange

      You cannot completely uninstall IE. You may have uninstalled the front-end, but the IE engine is embedded deep into the OS. Help files (chm files) are using the HTML engine, HTA files are also using it. And the embedded HTML IE webcontrol is more conservative in terms of compatibility, which is why you need to use META tags to force WebDialogs to use the very latest IE engine.

      And because so many things use the system HTML engine I recommend you keep IE up to date, even if you use a different browser. You can never remove it 100% anyway. The "uninstaller" is just a shim to please the public (and EU anti-trust).

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: JScript innerHTML not working in WebDialog !

      You should compare against the render engine that the WebDialog uses: IE under Windows and Safari/WebKit under OSX.

      Not sure if all HTML engines allow innerHTML under all doc types.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: List of all possible functions

      @tig said:

      I know TT has done some 'shortcut fiddling' with some of his tools [VertexTools?], so pressing M is Move [Vertex] in that tool, rather than invoking the native Move, which already uses that shortcut, and will do so when TT's tool is exited...
      Perhaps TT can explain what he does to allow that... the files re encrypted...

      I never modified the shortcuts. What I did in Vertex Tools was that I wanted to activate Vertex Tool's Move tool when vertex mode was activated, and the native Move tool when it was not. So I created a method that did that - but the user still had to reassign it's short-cuts to my proxy-delegating command.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: .gsub( /\n/, "\n\r" ) not working in WebDialog

      Yea, Notepad is fuzzy about new lines.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: .gsub( /\n/, "\n\r" ) not working in WebDialog

      @dan rathbun said:

      ... except that immediate methods (names ending with **!**,) return nil if no changes are made,... so do not use them in an assignment expression.

      This is such an annoying behaviour of Ruby. Source of so many creeping bugs.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: List of all possible functions

      And then there is the issue of localizations... I'm afraid this one isn't easy.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Base Camp 2014.

      @solo said:

      Damn! looks like I'm sitting this one out, too many costs this year, kid going to college and all.

      😞

      posted in Corner Bar
      tt_suT
      tt_su
    • RE: Applying new Material to a Selection is extremely slow

      It'd be good if you had a test model and some metrics to your existing code.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: List of all possible functions

      @onidarbe said:

      mmmm, how does System Preferences/Shortcuts/Function do it then?

      It doesn't find all available - items from context menus will only list when appropriate selection is made before opening that Window.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Material.Texture not working as explained in the doc

      Yes, the description in the docs is wrong. (Adding an issue for that.)
      But the example (messy example) does demonstrate the correct way - using a string with the path to an image resource.

      Texture.filename refer to the file the texture was originally created from. But all textures are embedded in the SKP file - so you cannot expect to find the texture file at that location. You need to use the TextureWriter for that.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: List of all possible functions

      There isn't anything in the Ruby API to list all possible items that can be assigned a shortcut - only to display what has already been assigned.

      With extensions and context menus etc I'm not sure if this would be easy to achieve...

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Open dialog box

      To open it as you would via File > Open:

      <span class="syntaxdefault">skp_file </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> UI</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">openpanel</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'Choose model to import'</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">'*.skp'</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">open_file</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">skp_file</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span>
      

      To load it as a component and let the user position it:

      <span class="syntaxdefault">skp_file </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> UI</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">openpanel</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'Choose model to import'</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">'*.skp'</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">unless skp_file</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">nil</span><span class="syntaxkeyword">?<br /></span><span class="syntaxdefault">  model </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_model<br />  definition </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">definitions</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">load</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">skp_file</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">  model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">place_component</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">definition</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">end</span>
      

      To load it as a component and insert at ORIGIN:

      <span class="syntaxdefault">skp_file </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> UI</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">openpanel</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'Choose model to import'</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> </span><span class="syntaxstring">'*.skp'</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">unless skp_file</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">nil</span><span class="syntaxkeyword">?<br /></span><span class="syntaxdefault">  model </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_model<br />  definition </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">definitions</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">load</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">skp_file</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">  tr </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> Geom</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Transformation</span><span class="syntaxkeyword">.new<br /></span><span class="syntaxdefault">  model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_entities</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">add_instance</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">definition</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> tr</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">end</span>
      
      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: Best way to iterate all nested entities

      Ah yes - very good point.

      posted in Developers' Forum
      tt_suT
      tt_su
    • RE: [Plugin] 3D Text Editor

      What is the full path of that explorer window?

      posted in Plugins
      tt_suT
      tt_su
    • RE: [Plugin] V-Ray Tools

      Can you describe in more detail?
      Do you get errors in the Ruby Console (if you keep it open)?
      Do you have screenshots of what you see?
      What are the steps you do when you can not export?

      posted in Plugins
      tt_suT
      tt_su
    • 1 / 1