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

    Topics

    • A

      SketchUp SDK last 32-bit version

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      6k Views
      No one has replied
    • A

      How to get near and far clipping plane of view?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      9
      0 Votes
      9 Posts
      9k Views
      E
      @pyroluna said: Well obviously the answer to my previous post here is yes. But it took a few years... https://www.clippingplane.com/ https://sketchucation.com/pluginstore?pln=AdvancedCameraSettings Pyroluna, did you know that there's already a free plugin by S4U to do this? https://sketchucation.com/pluginstore?pln=s4u_Clipping_Camera And it's not quite true that it took a few years. The legacy ThomThom's Camera Tools ( https://sketchucation.com/forums/viewtopic.php?f=323&t=43290 ) provide you instant (Camrea > Advanced) access to the debug dialogue. This plugin is very old but only with SketchUp 2017+ we have FORCE button. May the Force be with us!
    • A

      SketchUp 8 Bugs & Troubles!

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      25
      0 Votes
      25 Posts
      3k Views
      J
      Thanks Brad! As far as I know, only the 4 stipple types have been documented. If other types are supported, it would be great to get those documented and to be able to use them.
    • A

      [Plugin]ContextMenuOptimizer v2.8 (menu gray-out issue fix)

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      36
      0 Votes
      36 Posts
      56k Views
      A
      chango70 You can set limit of count plugins in use! In my opinion, It's just not convenient to have so many plugins for work when context-menu does not fit completely in the screen !
    • A

      [Code] Image: definition, transformation, transformation=

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      15
      0 Votes
      15 Posts
      5k Views
      T
      As a 'Thanks!' to Alex and my contribution to wellness of other exporters and especially their developers here is my modified transformation method that works I think in 99.9%. It may fail due to float precision, but I looks it doesn't happen too often. My idea is to calculate a center of the image, based on initially derived transformation and to compare it with a center of bounding box of the instance self.bounds.center. If the points are not same it means that an image is flipped. If flipped, I create a modified transformation with a negative scaling along y axis. Now I realized that this can be done by simply crating a Geom::Transformation.scaling origin, 1, -1, 1 and applying it to the original trans... def transformation origin = self.origin axes = self.normal.axes tr = Geom;;Transformation.axes(ORIGIN, axes.x, axes.y, axes.z) tr = tr * Geom;;Transformation.rotation(ORIGIN, Z_AXIS, self.zrotation) tr = tr * Geom;;Transformation.scaling(ORIGIN, self.width/self.pixelwidth, self.height/self.pixelheight,1) tr=tr.to_a tr[12]=origin.x tr[13]=origin.y tr[14]=origin.z trans = Geom;;Transformation.new(tr) #Global! trans of an image instance #check if flipped center_point=Geom;;Point3d.new(self.pixelwidth/2.0,self.pixelheight/2.0,0).transform! trans #center of an image center=self.bounds.center flipped=(center_point.x!=center.x or center_point.y!=center.y or center_point.z!=center.z) if flipped tr = Geom;;Transformation.axes(ORIGIN, axes.x, axes.y, axes.z) tr = tr * Geom;;Transformation.rotation(ORIGIN, Z_AXIS, self.zrotation) tr = tr * Geom;;Transformation.scaling(ORIGIN, self.width/self.pixelwidth, -self.height/self.pixelheight,1) tr=tr.to_a tr[12]=origin.x tr[13]=origin.y tr[14]=origin.z trans = Geom;;Transformation.new(tr) end return trans end#def
    • A

      [Plugin] Edit Image Material v2.1 UPDATE! (ArchTools)

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      4
      0 Votes
      4 Posts
      11k Views
      GaieusG
      There's no difference in the pro and free version in this.
    • A

      [Code] Method Model.start_operation for SketchUp 5-6

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      1k Views
      No one has replied
    • A

      [Plugin] Extended Standard Views - ArchTools-version!

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      11
      0 Votes
      11 Posts
      16k Views
      R
      This is a GREAT plug in! By the way the only way I know to install it is to copy the AT_set_standard_views.rb file to the Plugins folder.
    • A

      What are the differences between __send__ and send?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      124 Views
      No one has replied
    • A

      [code] ComponentDefinition-delete (another version!)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      22
      0 Votes
      22 Posts
      4k Views
      F
      @tig said: It's ' commit_operation' NOT ' confirm_operation' - my typo - it's now corrected in my earlier code... You can manually select objects including instances, and just the instances' definitions will be processed. You can only add 'entities' to a Selection [like geometry or instances] in code. NOT a 'definition' - which is NOT an 'entity'... Thanks you sir! That works perfectly! I should of caught that but I just figured it was a command I didn't know of yet!
    • A

      How to receive correct coordinates of all vertexes?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      461 Views
      A
      Correctly it will be whew: ... @lines = [] extract_lines(group.entities, group.transformation)#!!! ... def extract_lines(ents, tr) ents.each do |e| if e.typename == "Edge" line = [e.vertices[0].position, e.vertices[1].position] line[0] = tr * line[0] line[1] = tr * line[1] @lines << line elsif e.typename == "Group" extract_lines(e.entities, (tr * e.transformation))##!!! elsif e.typename == "ComponentInstance" extract_lines(e.definition.entities, (tr * e.transformation))#!!! end end end and it works!
    • 1 / 1