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

    Posts

    Recent Best Controversial
    • RE: Erase! gives an error: can't find parent

      also check with entity.valid? before doing stuff on an entity like this:

      all_ent = []
      Sketchup.active_model.entities.each do |ent|
        all_ent.push ent
      end
      all_ent.each {|ent| x.erase! if ent.valid?}
      
      posted in Developers' Forum
      tbdT
      tbd
    • RE: Fast Vector scale

      because the internal function length is done in C world and those 3 scalar multiplies in Ruby world (which of course is slower)

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Fast Vector scale

      why this testcase doesnt work ? I am missing something ?

      later edit: duh, vtmp = v.clone otherwise it will change the original vector
      from my tests scale2 is like 26-30% speed increase

      
      def scale(v,s)
        Geom;;Vector3d.new(v.x * s,v.y * s, v.z * s)
      end
      
      def scale2(v,s)  
        vtmp = v; 
        vtmp.length = vtmp.length * s
        vtmp
      end
      
      v1 = Geom;;Vector3d.new(5,1,5)
      n1 = 10
      
      t1 = Time.now
      begin
        50000.times do |x|
          scale2(v1,n1)   
        end
      rescue => err
       p err
      end
      p Time.now - t1
      
      
      posted in Developers' Forum
      tbdT
      tbd
    • RE: Sunflow exporter update

      Adam: bsp importer is done in Ruby ?

      posted in Plugins
      tbdT
      tbd
    • RE: [Plugin] SmartDrop Beta

      nice work a4chitect

      posted in Plugins
      tbdT
      tbd
    • RE: Lighting Plugin for Sketchup

      Viktor: I proposed to Adam a collaboration but it seems it doesn't fit the roadmap πŸ˜‰

      Biebel: Q1, Q3 - yes. regarding Q2, I dont know as I didnt saw any textures in the videos, only color. doing multitexturing (texture + lightmap) only in ruby will be slower

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Video textures possible in SketchUp

      unfortunately it will not be free (unless someone will sponsor the development) πŸ˜†
      also it is Windows only due the tricks involved.

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Video textures possible in SketchUp

      it is a plugin and can be activated/deactivated (even if the impact on frame per rate is minimal)

      it needs some finetuning, but this all depends on the user feedback - higher feedback, higher priority πŸ˜„

      posted in Developers' Forum
      tbdT
      tbd
    • Video textures possible in SketchUp

      ... and it is not SketchUp 7 πŸ˜„
      http://www.youtube.com/watch?v=rfr8cLZNvWg

      I used 2 .avi files - they can be rotated, scaled as normal textures on a face.

      enjoy

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Happy Birthday TBD

      thanks guys !
      and here is my present for you πŸ˜„

      posted in Corner Bar
      tbdT
      tbd
    • RE: Community Project : Development of a Sketchup Benchmark Test

      how about loading a complex model (with textures, transparent materials, sun activated, ...) and typing in Ruby Console Test.time_display

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Detecting a flipped transform.

      but if you flip red and rotate blue 180 it is not the same as doing a flip on green ?

      posted in Developers' Forum
      tbdT
      tbd
    • RE: Detecting a flipped transform.
      
      t = transformation.to_a
      p t[0] < 0 # flipped on red?
      p t[5] < 0 # flipped on green?
      p t[9] < 0 # flipped on blue?
      
      
      posted in Developers' Forum
      tbdT
      tbd
    • RE: Drop.rb script upgrade suggestion

      unfortunately I dont have time right now to implement it, but you are free to add it. hope that you will share the modifications so I can add it to drop.rb.

      thanks for the suggestion

      posted in Developers' Forum
      tbdT
      tbd
    • 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
    • 1 / 1