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

    maxim1000

    @maxim1000

    10
    Reputation
    1
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    maxim1000 Unfollow Follow
    registered-users

    Latest posts made by maxim1000

    • Customized 3D Warehouse link

      Hello

      Is there any way to invoke 3D Warehouse interface like "3D Warehouse / Get model" does, but for a given collection or some search query, instead of main page?

      posted in Developers' Forum
      M
      maxim1000
    • RE: Face Me Scaling bug?

      @thomthom said:

      Instead of
      t = Geom::Transformation.scaling(2.0)
      use this variant:
      t = Geom::Transformation.scaling(2.0, 2.0, 2.0)

      Think that works.

      Wow... Thanks.
      Just curious: how did you find out this?

      posted in Developers' Forum
      M
      maxim1000
    • RE: Face Me Scaling bug?

      @chris fullmer said:

      TIG!!! That might be it! I'll try to commit that to code shortly. I really like the idea, lets hope it works as nicely as it sounds,
      Chris

      Has anybody positive results with this technique?
      I've tried to make always_face_camera false, scale and then return back always_face_camera to true, but on the last step, model becomes shifted and has "jumping" behavior.

      posted in Developers' Forum
      M
      maxim1000
    • RE: Entity.visible? vs entity.hidden?

      @thomthom said:

      You are testing the definition - definitions are not placed in the model and therefore can't be visible or hidden. ComponentInstances are what you need to test against.

      Thanks for this remark, I'll adjust my code.

      Since ComponentDefinition is inherited from Drawingelement, calling visible? and hidden? seems not to be some incorrect operation leading to undefined behaviour. Yes, they may not represent actual state of geometry, but this shows that visible? is not the same as !hidden? at least at implementation level, and thus can it be safely assumed that they are the same in all other cases?

      posted in Developers' Forum
      M
      maxim1000
    • RE: Entity.visible? vs entity.hidden?

      It seems visible? and !hidden? are not the same...
      I've attached model. visible?==!hidden? for all entities except the deepest one.
      Here is log from my Ruby window:

      m=Sketchup.active_model #<Sketchup::Model:0xb2ce678> m.entities[0].definition.entities[0].definition.visible? true m.entities[0].definition.entities[0].definition.hidden? true

      and from my observation visible? is closer to the truth 😄


      aaa.skp

      posted in Developers' Forum
      M
      maxim1000
    • RE: Non-model geometry

      Thanks for answers.

      We ended up with approach similar to one of described by TIG: we have a separate layer with known and recognizable name and store all our geometry there. Any operation gets required data (actually it's only box size) from that layer and thus the problem with losing references to our stuff is solved.

      Of course problem with appearance of our geometry in saved modelы is still relevant, but it seems we can and will have to live with that (because after reopening the plugin catches existing geometry)...

      posted in Developers' Forum
      M
      maxim1000
    • Non-model geometry

      Hello

      During implementation of plugin I faced with requirement to show some geometry to user which should not appear in saved files and preferably be absent in "undo" stack.

      It's a helper entity - basically bounding box which shows to user bounds of area for model fitting.

      Does anyone know ways to do such things in Sketchup?

      P.S.
      We already considered approach of creating a tool, but it's important to allow user to edit model with other tools while the plugin is active.

      posted in Developers' Forum
      M
      maxim1000