sketchucation logo sketchucation
    • Login
    1. Home
    2. pipman
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Groups 1

    pipman

    @pipman

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

    pipman Unfollow Follow
    registered-users

    Latest posts made by pipman

    • UV Coordinates

      Hi everyone,

      I have a problem understanding UV mappings and try to describe that without screenshots:

      When I scale objects I take an array of vertices and move that into a direction. Since not moving the entire object but only a subset of points that usually floats the textures since the UV-coordinates are obviously world coordinates.

      After using tools like Fredo's ThruPaint those coordinates seem no longer to be world coordinates but face coordinates. So when I move all points from a face that texture doesn't float with the movement but sticks to the face.

      How can I change that behaviour? Another possibility seems to be that in case of using Sketchup's internal paint bucket it just references one uv coordinate and tools like Fredo use more than one for distortion. However, another Fredo tool (FredoScale) does the job as I would like it to. My problem is though that I need this directly in ruby without any front end tools, so I need to understand whats going on...

      I couldn't find anything on that in the documentation and I am incapable of working this out by understanding Fredo's entire toolset ๐Ÿ˜„

      Thanks
      Andreas

      posted in Developers' Forum
      P
      pipman
    • Ruby Architecture concerning Deleted Entities

      Sketchup deletes and replaces entities as it desires - sometime from one ruby line to the next.

      I am trying to build fast routines avoiding to to manipulations which would necessarily lead to new entities (however - if SU decides to do so I obviously can't stop it from doing so).

      sumod = load_skp_entities_from_file("xxx.skp")

      lets assume, ents is loaded as a Sketchup::ComponentInstance, then the reference to its entities is:

      ents = sumod.definition.entities

      now I need to work with those entities in order to make changes to the loaded model.

      at one point in the code I run into the following part:

      return if ents.deleted? # ents.deleted? is false
      puts ents.length

      and sketchup breaks with "undefined method `length' for #<Deleted Entity:0xef91fd8>"
      in THE VERY NEXT LINE after having checked that it is NOT deleted.
      and there is no chance to get information on how why when or how to avoid this

      the only comments I found were: "why work with entities, create new ones right away as you need them". this is not how my code works for many good reasons (like not having to model and especially correctly texturize from scratch). It really needs to load entities and work with them.

      Are there any guidelines, help on how to keep entity references (or meta references) valid in a fast and efficient way?

      posted in SketchUp Discussions sketchup
      P
      pipman
    • RE: How to render SketchUp with Vray via ruby script [Help]

      I just stumbled over my last question, here is a possible answer:
      thea render does the job for me, can be called via undocumented
      TH4SU.render("output.jpg") { callback.call }
      Has some flaws but generally works well.

      posted in V-Ray
      P
      pipman
    • RE: How to render SketchUp with Vray via ruby script [Help]

      or any other external renderer...

      I am also desperately looking for a renderer which I can control from ruby. Any help is very much appreciated.

      Andreas

      posted in V-Ray
      P
      pipman
    • RE: My ESC Key Won't Work In SU Anymore?

      same problem here. esc key doesnt work anymore. maybe if I open another project and go back it might work - but this is an annoying software problem.

      posted in SketchUp Discussions
      P
      pipman