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

    tpoz

    @tpoz

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

    tpoz Unfollow Follow
    registered-users

    Latest posts made by tpoz

    • Edge Orientation on a Rectangle

      Hello all,
      I have a script that i have been running quite frequently for quite a few months. It seemed to work nicely and consistently, but now it has suddenly changed and I'm wondering if it has something to do with the start and end positions of edges on rectangle faces being changed. I'll explain a bit more...
      So, my plug-in would require the user to draw a rectangle and select the two edges between the point/vertex where the rectangle was initiated (after some time I found the convention of how the edge vectors were oriented). But since mid-January this convention has suddenly changed (I think) and the layout that is drawn on top of this rectangle and depends on this orientation has changed.

      Am I imagining this?
      Does anyone have any insights on this?

      laura

      posted in Developers' Forum
      T
      tpoz
    • RE: Behavior: shadows_face_sun

      Hey,
      It turns out that thomthom's first suggestion was the one!
      I thought I had tried that, thanks for the posts everyone!

      Laura

      posted in Developers' Forum
      T
      tpoz
    • Behavior: shadows_face_sun

      Hello everyone!
      I have a question about behavior. I am trying to draw a 2d component and have it follow the sun using .shadows_face_sun. I can't seem to make it follow the sun.
      Here is some code:

      
      shruw = 15
      shruh = 20
      shr0 = [shruw/2,0,0]
      shr1 = [-shruw/2,0,0]
      shr2 = [-shruw/2,0,shruh]
      shr3 = [shruw/2,0,shruh]
      
      point = Geom;;Point3d 0,0,0
      transform = Geom;;Transformation.new point
      trees = model.definitions.add("MyShrub")
      shrubbie = trees.entities.add_face(shr0, shr1, shr2, shr3)
      shrubbie.material = "ForestGreen"
      shrubbie.back_material = "ForestGreen"
      
      model.active_entities.add_instance(trees, transform)
      model.active_view.zoom_extents
      trees.behavior.shadows_face_sun = true
      
      

      I've tried a few other things like

      
      behavior = model.definitions[0].behavior
       beehive = behavior.always_face_camera = true
      
      

      I think I am using the definition wrong or something when i use behavior.

      Any help is greatly appreciated!
      Thanks,
      Laura

      posted in Developers' Forum
      T
      tpoz
    • Making components...

      Hello y'all,
      I'm having quite a hard time trying to figure out how to make components 😞
      I can retrieve components from the Component Samples folder and that seems to work, but what I really want to do is ask the user what the dimensions are (of a generic house or an image of a tree) and make the 'house' those dimensions.
      I think my problem is that I don't know how to define the edges/faces as a component. I don't really know what to replace

      componentdefinition= definition.load path
      

      with, or how to define my 'house' in the DefinitionList, or if this even makes sense.

      Any help would be greatly appreciated πŸ˜„
      Thanks,
      laura

      posted in Developers' Forum
      T
      tpoz
    • RE: Photo-match in the xy plane

      Hello!
      Thanks for both of your advice.
      honoluludesktop: I haven't been able to find a straight-forward way of making the photo lay parallel to the ground plane to the model. It may be because I'm unable to move the direction to the blue (z) axis? ...But I'm not sure.
      xrok1: I have tried this and it needs a bit of input (like the dimensions of the full-extents of the model) in order to draw a rectangular 'ground' and have the 'material' be the exact same size as the actual model.
      Are there any other options? Or easier ways to do these?
      Thanks!
      tpoz

      posted in SketchUp Discussions
      T
      tpoz
    • Photo-match in the xy plane

      Hello all,
      I am trying to do some shade analysis, nothing to fancy or quantitative, I just want to have an idea of where the sun shines (and where it doesn't) over time. I have made a model, put different times in different scenes, exported a 2d .png, overlayed them in the gimp (using multiply) and saved them as one .png.
      I would like to take this and put it back into SketchUp and photo-match it, but in the xy plane (the ground) not parallel to the z-axis. Is there any simple way of doing this? I have fiddled around with the adjustments but haven't been able to achieve it...
      Is this something that can be done?
      Thanks to anyone who has any input πŸ˜„
      laura

      posted in SketchUp Discussions sketchup
      T
      tpoz
    • RE: Output Text ?

      Thanks Chris for the wonderful advice...I'll try to get on it. But don't be surprised if you see a post from me soon on how to accomplish some of this stuff! πŸ˜‰

      Thanks again!
      laura

      posted in Developers' Forum
      T
      tpoz
    • RE: Output Text ?

      Thank you Chris...and Chris for replying!
      I'll try to be a bit more clear about what I need to convey to the user:
      The user will input preferences (vegetables, path widths, etc.)from dropdown menus in a few input boxes that will pop up. Because this is user-specific and I would like the script to be as user-friendly as possible I would like to output a user-specific table with things like planting times, harvesting times, vegetable symbol/colour (to use with the garden graphic), etc.
      for the user to be able to use as a reference.
      I will have all the information stored in a hash database in my script, your Entities.add_text comment made me wonder: is there anything fancy i can do with entity info if i label everything? (I apologize if this is a dumb question, I just thought I'd ask πŸ˜„)

      Thanks for any feedback!!
      laura

      posted in Developers' Forum
      T
      tpoz
    • Output Text ?

      Hello all,

      I'll cut right to the chase... I have written a gardening script for SketchUp that requires input of user preferences (veggies, path widths etc.) to determine garden layout. The user gets a graphical representation of their layout, and in addition I would like to be able to write text to a .txt file or .xls file or something so that the user has their information from the graphic available to print out or just view in a straightforward written manner.
      Does anyone know of a way that I could achieve this? Even to be able to write within SketchUp (not in the console, but on the image) would improve my situation greatly.

      Thanks in advance,
      laura

      posted in Developers' Forum
      T
      tpoz
    • Changing the orientation and position of the axis?

      Hello all,
      I am writing a little program with a user interface that is supposed to draw rectangular openings on a face that is user specified (with constraints) but I have run into a bit of a snag.
      Here is the essence of my program:
      -the a user draws a rectangle, with the rectangle tool, and is 'allowed' to translate and rotate this rectangle in the x-y plane
      -based on the dimensions of the rectangle and some input for opening width and such, it is straightforward to define the four points of each opening...if the rectangle is just at the origin.
      I've tried to make a transformation to the axes using Geom::Transformation.axes origin, xaxis, yaxis, zaxis,
      but am unable to make these openings on the user's rectangle.
      I think part of the problem is that I am misinterpreting what transformation.axes really does. Does anyone have any input as to how I could do this or a better explanation of transformation.axes or anything really?!
      Thanks!
      laura
      p.s. if this is unclear, please, let me know πŸ˜„

      posted in Developers' Forum
      T
      tpoz