sketchucation logo sketchucation
    • Login
    1. Home
    2. onidarbe
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 16
    • Posts 52
    • Groups 1

    Topics

    • onidarbeO

      Need walls that automatically disappear in 1 direction.

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Feature Requests sketchup
      1
      0 Votes
      1 Posts
      18k Views
      No one has replied
    • onidarbeO

      Sketchyphysics collision not working

      Watching Ignoring Scheduled Pinned Locked Moved SketchyPhysics
      2
      0 Votes
      2 Posts
      7k Views
      A
      Select all 3 stair sections, got to right click menu, SketchyPhysics -> State -> Not Collidable. FYI, SketchyPhysics 3.3 in out: http://sketchucation.com/forums/viewtopic.php?f=61%26amp;t=58567
    • onidarbeO

      JScript innerHTML not working in WebDialog !

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      874 Views
      S
      @tt_su said: @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). For Mac users, the equivalent statement is that SketchUp uses the WebKit Framework, not Safari. Just as on Windows, your choice of browser has no effect on what SketchUp's WebDIalogs do.
    • onidarbeO

      .gsub( /\n/, "\n\r" ) not working in WebDialog

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      1k Views
      onidarbeO
      Thanks Dan! But in this case I want for those maybe using my stuff to make it readable in notepad to
    • onidarbeO

      List of all possible functions

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      13
      0 Votes
      13 Posts
      975 Views
      tt_suT
      @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.
    • onidarbeO

      Calculate the needed width of a WebDialog

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      477 Views
      onidarbeO
      Thanks! I found the solution... [update 2013-01-23] def popup(msg="", timeOut=0, posX=20, posY=70) # 2013-01-23 onidarbe () gmail # Popup a message (including html-tags & \r) with a timout and auto-resize the window # A click on the popup-window will disable timeOut and has to be closed manually # To see how it's working, add border;1px solid black; in the <div style='...'> htmlCode = %{ <html onclick='clicked();' > <div id='div' style='float;left; white-space;nowrap;' > #{msg.gsub(/\r/,"<br>\n")} </div> <script type='text/javascript'> width=document.getElementById('div').offsetWidth; height=document.getElementById('div').offsetHeight; document.write("<input type='hidden' id='width' value='" + width + "'/>"); document.write("<input type='hidden' id='height' value='" + height + "'/>"); function clicked() { location = 'skp;clicked' }; document.body.scroll = "auto"; </script> </html> } win = UI;;WebDialog.new( "" ) # NOTE; Variables made up on multiple lines have only a \n at the end of each line! # "View source" with Windows Notepad needs to have \r\n win.set_html( htmlCode.gsub(/\r\n|\n\r|\n|\r/,"\r\n") ) # Although WebDialog without pref_key doesn't keep size or location, set_size does! # Thereby start with a smaller window instead of a larger previous version win.set_size( 130, 30 ) win.set_position( posX, posY ) win.show UI;;start_timer( 0, false ) { win.set_size( win.get_element_value("width").to_f+60, [800, win.get_element_value("height").to_f+80].min ) } if timeOut != 0 timerID = UI;;start_timer( timeOut, false ) { win.close } win.add_action_callback( "clicked" ) { UI.stop_timer( timerID ) } end end pluginPath = Sketchup.find_support_file( "Plugins" ) Dir.chdir( pluginPath ) rbFiles = Dir[ "*.rb" ] popup( "<B>All plugins;</B>\r#{pluginPath }\r\r#{rbFiles.join("\r")}", 2 )
    • onidarbeO

      Model in model sharing methods

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      283 Views
      Dan RathbunD
      try something like: file "MR/MIX/P.rb" module MR module P def p(msg="") puts "from MR;;P; '#{msg}'" end end # create a module function within module MR; extend(P) # creates a singleton method end other files: require("MR/MIX/P.rb") module MR module Test p "Called p inherited down from Kernel" include(MR;;P) # overrides the p() inherited from Object, as mixed in from Kernel MR;;p "Called MR;;p" p "Called p" # should call overridden p() def self.pedigree() puts "#{Module.nesting[0].name} ancestors; #{self.ancestors.inspect}" end end end
    • onidarbeO

      How to check showRubyPanel is ready to accept puts

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      16
      0 Votes
      16 Posts
      588 Views
      D
      @onidarbe said: Seems I need to use Win32API. most probably... for the Notepad++ side of things. I understand more what your doing now... I have a similar setup that uses 'Applescript' and 'Unix' to let me work in 'dev-mode', I struggled to get it to work for many versions. I'm very happy with it now, and it is possibly portable, if you want to have a look I'll PM you a copy... It now functions on a very simple premies. Let SU do the SU bits and only do what it can't with other tools... when you use Sketchup.plugins_disabled = true => 'only' the standard Sketchup.find_support_file("Plugins") are disabled. 'Ruby Console' can be opened from any other other loaded path. I have two different 'loader files' One is in "../Plugins/My_Folder/my_file", it has a cmd that toggles Sketchup.plugins_disabled = true : Sketchup.plugins_disabled = false Then, I use the "Tools" folder to hold a small ruby that basically... [sudo code] my_file = ( Sketchup.find_support_file("my_file.rb", "Tools") ).sub( "Tools", "Plugins") if Sketchup.plugins_disabled? && FileTest.readable?( my_file ) "Sketchup.send_action 'showRubyPanel;'" load(my_file) else ignore_me end john
    • onidarbeO

      X-ray transparency settings?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      1k Views
      TIGT
      You can only get/set and toggle Xray-mode on/off using: Sketchup.active_model.rendering_options["ModelTransparency"] Sketchup.active_model.rendering_options["ModelTransparency"]=true Sketchup.active_model.rendering_options["ModelTransparency"]=false The amount of Xray-mode's 'opacity' is 'hard-coded' Fredo has made a pseudo Xray-mode tool [can't recall it's name off-hand ], which works on selected objects, but that just swaps to similar but translucent materials [you could customize the amount of transparency in it] - so although it mimics Xray for parts of the model, it is only useful 'graphically' in images - there are none of the Xray-mode's advantages - like being able to pick 'through' intervening faces etc...
    • onidarbeO

      Want new tool: Select through transparent face

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      687 Views
      A
      There is also an approach without making changes to entities: One could also use a repeated raytest, and let it pass through all faces whose material has an alpha value lower than a threshold, or a texture whose filename endswith "png" (however, scripters can not determine which texture pixels are transparent). Then the last face would be added to the selection.
    • onidarbeO

      Class installs twice when reloaded!

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      14
      0 Votes
      14 Posts
      477 Views
      onidarbeO
      aoh, I need to have that file Win32API.so in the plugin map! thanks
    • onidarbeO

      Remove last line in Ruby Console?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      226 Views
      onidarbeO
      ok, thanks
    • onidarbeO

      1 second pop-up, timed message

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      221 Views
      onidarbeO
      Short and ride to the point Thanks again Dan! Have a nice new year's eve...
    • onidarbeO

      How can I run code on view-change

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      330 Views
      onidarbeO
      thanks!
    • onidarbeO

      Can't read backslash with Sketchup.read_default !

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      462 Views
      Dan RathbunD
      Well it is replaced with Win32API.rb which is a wrapper that uses the DL library. So you can still use it. In later versions even DL is deprecated and becomes a wrapper into the Fiddle library. They (the Ruby Core people,) want coders to begin using the newer libs. But not every user installs the full Ruby libraries. It is easier to just use the Win32API class, for now.
    • onidarbeO

      [req] Drawing through walls, disable layers or hidden paint

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      6
      0 Votes
      6 Posts
      321 Views
      J
      Controlled clipping. Might be possible using a Section Plane which is aligned to the camera with an Observer.
    • 1 / 1