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

    Topics

    • C

      Disable OnLButtonUp when onLButtonDoubleClick

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      770 Views
      C
      In the script, it's just the time allowed to detect the double click
    • C

      Retrieve Color Layer assigned by Sketchup

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      16
      0 Votes
      16 Posts
      1k Views
      C
      Hy, TIG plugin ListLayerColors after some modifications, can create new colors in the pallet with layer's colors require 'sketchup.rb' ### class CreateLayerColors def CreateLayerColors ;;get() model=Sketchup.active_model entities = model.active_entities materials=model.materials layers=model.layers if model.rendering_options["DisplayColorByLayer"]==false model.rendering_options["DisplayColorByLayer"]=true already_on=false else already_on=true end#if # create temporary entities for exporting layers vecteur = Geom;;Vector3d.new 0,0,1 centre = Geom;;Point3d.new 0,0,0 group_temp=entities.add_group() entities = group_temp.entities x =0 layers.each {|layer| model.active_layer = layer centre = [centre[0], centre[1], centre[2] + x] edges = entities.add_circle centre, vecteur, 0.01 cercle = entities.add_face(edges) x= x + 0.01 } model.save "temp" mpath = Sketchup.find_support_file "temp", "Plugins/" model.export(mpath +".obj",false) mtl=mpath+".mtl" text=IO.readlines(mtl) 0.upto(text.length-1) do |i| if text[i]=~/^newmtl */ name=text[i].slice(7..-2)### layer name only rgbR=((text[i+2].slice(3..11).to_f)*255).to_i.to_s### color rgb values rgbG=((text[i+2].slice(12..20).to_f)*255).to_i.to_s### color rgb values rgbB=((text[i+2].slice(21..29).to_f)*255).to_i.to_s### color rgb values couleur_calque = Sketchup;;Color.new(rgbR.to_i, rgbG.to_i, rgbB.to_i) unless materials[name] new_matiere = materials.add name new_matiere.color = couleur_calque new_matiere = new_matiere.name else materials[name].color = couleur_calque end end#if end#upto File.delete(mpath+".obj") File.delete(mtl) File.delete(mpath) group_temp.erase! ### model.rendering_options["DisplayColorByLayer"]=false if already_on==false ### end#def end#class ### menu # add menu items if(not file_loaded?("CreateLayerColors.rb")) UI.menu("Plugins").add_item("Create Layer Colors"){CreateLayerColors;;get} end#if file_loaded("CreateLayerColors.rb") ### CreateColorLayer Christophe
    • C

      [Plugin] ChrisP_ColorEdge

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      67
      0 Votes
      67 Posts
      93k Views
      TIGT
      @pribadi said: saya tidak bisa menemukan file coloredge untuk mengunakannya mohon petunjuk dimana downloadnya dan cara instalnya di sketchup pro 8 Download its .RBZ file from the SketchUcation PluginStore... https://sketchucation.com/pluginstore?pln=ChrisP_ColorEdge_EN If your version-8 is the latest update you can install that RBZ using the Preferences > Extension > Install button... Otherwise you can rename the .RBZ file as .ZIP, then extract all of its contents into a temp folder, and then move everything into your v8 Plugins folder, ensuring everything is kept properly as extracted... Then restart SketchUp to load things... Unduh file .RBZ-nya dari SketchUcation PluginStore ... https://sketchucation.com/pluginstore?pln=ChrisP_ColorEdge_EN Jika versi-8 Anda adalah pembaruan terbaru, Anda dapat menginstal nya menggunakan Preferensi > Ekstensi > tombol Instal ... Jika tidak, Anda dapat mengganti nama file .RBZ menjadi .ZIP, kemudian mengekstrak semua isinya ke folder temp, dan kemudian memindahkan semuanya ke folder Plugin v8 Anda, memastikan semuanya disimpan dengan benar seperti yang diekstrak ... Kemudian mulai ulang SketchUp untuk memuat sesuatu ...
    • 1 / 1