sketchucation logo sketchucation
    • Login
    1. Home
    2. tbd
    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!
    Urasik Extensions | Lots of new extensions to check out Learn More
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 37
    • Posts 606
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Lighting Plugin for Sketchup

      excellent ! can you provide more info about it ?
      LE: a4chitect beat me with the questions πŸ˜‰

      posted in Developers' Forum
      tbdT
      tbd
    • RE: 3DVIA

      pros:

      • clean, big interface with nice icons
      • soft sun shadows
      • thick lines for move/manipulate

      cons:

      • hard to work after used to SU workflow
      • middle mouse button + left to orbit - yuck 😑
      • not enough features to work on bigger project
      • enter your login details on each open
      • where is the open/import ? πŸ˜‰

      conclusion: uninstall

      posted in Hardware
      tbdT
      tbd
    • RE: 3DVIA

      I tested it some time ago - first impression - bleah (some things didnt worked, ...) πŸ˜‰
      2nd chance now - one minus, it wants to be installed only on πŸ˜„ drive.

      posted in Hardware
      tbdT
      tbd
    • RE: How to check if a program is running with Ruby?

      you need win32ole.so for that example.
      ... but you still need another file to access process identification (win32ole or win32api)

      posted in Developers' Forum
      tbdT
      tbd
    • RE: How to check if a program is running with Ruby?

      here is one quick way

      require "win32ole"
      procs = WIN32OLE.connect("winmgmts;\\\\.")
      all_proc = []
      procs.InstancesOf("win32_process").each do |proc|
        all_proc.push proc.name.to_s.downcase
      end
      p all_proc.include?("indigo.exe")
      
      posted in Developers' Forum
      tbdT
      tbd
    • RE: Yahoo Image Search

      just add an index.htm in the images dir that redirect to your main page

      posted in Corner Bar
      tbdT
      tbd
    • RE: Texture.use_alpha?

      azuby: true. thanks

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Texture.use_alpha?

      here some quick code to check for PNG transparency

      
      class ReadPNG
        def initialize(file)
          @pngfile = File.open(file,"rb+").read
          read_offset(8) #skip header
        end
        
        def transparent?
          ok = true
          while ok
            chunk_size  = read_offset(4).unpack("N")[0]
            section     = read_offset(4)
            case section
            when 'PLTE'
              read_offset(chunk_size)
            when 'IDAT'
              read_offset(chunk_size)
            when 'tRNS'
              read_offset(chunk_size)
              return true
            else
              @offset += chunk_size
            end
            ok = section != "IEND"
            read_offset(4)  # skip CRC
          end
          return false
        end 
        
        def read_offset(length = 1, offset = nil)
          @offset ||= 0
          @offset = offset if offset
          begin
            ret = @pngfile[@offset, length]
          rescue
            p "error reading at #{@offset}"
          end
          @offset += length
          ret
        end  
      end
      
      p ReadPNG.new('texture.png').transparent?
      
      
      posted in Developers' Forum
      tbdT
      tbd
    • RE: Texture.use_alpha?

      @unknownuser said:

      Is there way to find out if a texture has alpha channel?

      nope 😒

      @unknownuser said:

      Will material.materialType help me?

      nope again - it returns the same value as for a non-alpha texture

      you can look for 'tRNS' chunk inside .png files - if present than it contains transparency

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Please Welcome Style Builder...

      tip: read the help files first
      let the styles madness begin ! πŸ˜„

      posted in SketchUp Discussions
      tbdT
      tbd
    • RE: Random Delete?

      [shameless plug] add Randor in the mix and you have a good looking forest, crowd, ... [/shameless plug]

      posted in SketchUp Discussions
      tbdT
      tbd
    • RE: Voice activated Sketchup - it's here

      it supports semicolon and comma and it needs a training stage to learn your voice but still keyboard is way faster (and why a 44mb download for an installed 3mb program ?)

      unless you want to have fun saying the same thing on the microphone - "push pull you stupid computer !"

      posted in SketchUp Discussions
      tbdT
      tbd
    • RE: New way to dynamically resize images

      already available to play with your photos interactively at http://rsizr.com/ (since Sep.28)

      posted in Hardware
      tbdT
      tbd
    • RE: SU6 SKM processing

      that means that the user must export as OBJ first - not acceptable πŸ˜„

      so I think I will use TextureWriter as there is no Ruby method that points to the .skm file to do a .zip parsing of .xml files. urgh πŸ˜„

      thanks anyway

      posted in Developers' Forum
      tbdT
      tbd
    • SU6 SKM processing

      does anyone knows how to get the texture file from a material ?

      sketchup.com is down and I dont have a mirror of SU6 Ruby help and in SU6 textures are stored inside .skm (which are renamed .zip files) versus SU5 where all textures were stored normally in Materials subdir.

      one way is to TextureWrite it but I dont like to clutter the HDD for that πŸ˜„

      posted in Developers' Forum
      tbdT
      tbd
    • RE: [Plugin] Unhide ALL (Edges) - Inside Groups / Components ???

      and here is the fix (thanks TIG) - works with both .skp from JClements & Howard L' (for the cube in JClements .skp you need to triple click to select all connected as it is not a group)


      unhide_all.rb

      posted in Plugins
      tbdT
      tbd
    • RE: [Plugin] Unhide ALL (Edges) - Inside Groups / Components ???

      azuby: unfortunately it suffers from the same problem - somehow duplicated groups have the same entities as in a component

      posted in Plugins
      tbdT
      tbd
    • RE: [Plugin] Unhide ALL (Edges) - Inside Groups / Components ???

      here ya go unhide from groups/components on selection or all if no selection


      unhide from groups/components on selection or all

      posted in Plugins
      tbdT
      tbd
    • RE: How can I assign a keyboard key as a SketchUp shortcut

      oscarlok: it is not possible to make a keyboard shortcut via Ruby as this is a feature that user should decide (imagine if every script started to change your shortcuts πŸ˜† )

      posted in Developers' Forum
      tbdT
      tbd
    • 1
    • 2
    • 27
    • 28
    • 29
    • 30
    • 31
    • 30 / 31