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

    Posts

    Recent Best Controversial
    • Who could help to develop this rb?

      Hi All, I found a "Layer Face Camera" plugin, and it's useful. But it can only turn off "always face camera". Who could help to add Switch ON/OFF function? Thank you very much.

      version:

      Added Undo

      module JF
      def self.layer_face_camera
      layers = Sketchup.active_model.layers
      name = UI.inputbox(["Layer"], [layers[0].name], [layers.map{|l|l.name}.join("|")])
      return unless name
      Sketchup.active_model.start_operation("Layer Face Camera")
      Sketchup.active_model.entities.each { |ent|
      next unless ent.is_a? Sketchup::ComponentInstance
      next unless ent.layer.name == name[0]
      cdef = ent.definition
      cdef.behavior.always_face_camera = false
      }
      Sketchup.active_model.commit_operation
      end
      end

      posted in Extensions & Applications Discussions extensions
      I
      iApple
    • 1 / 1