đź«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
  • Difference between 4 % 2 and 4 %2

    2
    0 Votes
    2 Posts
    183 Views
    R
    Id guess its to do with how ruby expects to receive arguments for the method. If you put brackets around it it should work, i.e. 4%(2) and 2.to_f-(1)
  • Entity.visible? vs entity.hidden?

    21
    0 Votes
    21 Posts
    2k Views
    thomthomT
    @maxim1000 said: 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? http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/drawingelement.html#visible= @unknownuser said: The visible= method is used to set the visible status for an element. This method performs an opposite function to the hidden= method. Might be that the definition class causes an abnormality. Testing against any other DrawingElement derived class that actually is placed in the model they behave as expects. Though it is odd it should return true on both for definition. In practice - they do refer to the same thing though.
  • Transform Vertices?

    4
    0 Votes
    4 Posts
    236 Views
    J
    What thomthom said. But it is interesting. It's not easy to tell what entities can be transformed. Being transformable is not related to be a DrawingElement (as you might think) because a Vertex is not one of those. In fact, a Vertex inherits from Entity.
  • Right Click Edit

    12
    0 Votes
    12 Posts
    816 Views
    S
    thanks, great explanation. I'm guessing nothing in parametric.rb is actually specifically changed to work with windows.rb and it is the windows.rb script that utilizes the methods and variables in the parametric.rb script. i'll keep working at it
  • Passing arguements

    6
    0 Votes
    6 Posts
    244 Views
    honoluludesktopH
    Guys, thanks for the help. Chris, I will look very carefully at your example.
  • Non-model geometry

    6
    0 Votes
    6 Posts
    286 Views
    M
    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)...
  • 3 Problems

    3
    0 Votes
    3 Posts
    225 Views
    thomthomT
    @chris fullmer said: #3 - SketchUp does not give any control of normals. I think they always face the same direction as their face. Unless the edges is smoothed, then I think the normals average between the normals of the 2 faces. I think. Nope! The normals stay the same. You can see with if you use my Probes plugin - it lets you visualize the normals of faces and edges: http://forums.sketchucation.com/viewtopic.php?f=323&t=21472#p180592
  • Variables?

    8
    0 Votes
    8 Posts
    323 Views
    thomthomT
    Transformations are still an enigma to me as well. But I just got a couple of books on vectors and transformations. ...but my right eye is still blurry after the operation so I can't concentrate on reading. Scariest of all is Observers. I wish you'd start using them more - so you could share my pain. (And join in on the rants )
  • Rotating component

    5
    0 Votes
    5 Posts
    1k Views
    daikuD
    I wrote this one a while back: http://www.crai.archi.fr/RubylibraryDepot/Ruby/EM/rot90.rb Rotates by 90 degrees around your choice of red|green|blue axes with a right click selection (can be mapped to a shortcut key). CB.
  • Materials Browser in Ruby?

    3
    0 Votes
    3 Posts
    185 Views
    M
    @tig said: splitting out the parts of the material's 'skm' file [which is really a 'zip' file] and taking the image file part, then making that as your new material's texture [with appropriate scaling] etc etc... Thanks. I was afraid of that.
  • Face Me Components in relation to the SUN?

    5
    0 Votes
    5 Posts
    2k Views
    DavidBoulderD
    If all of your faceme objets have shadows that fall onto a flat surfaces (vs. hitting walls, steps, etc.) then maybe you could make a dynamic component with two sub components. One sub-component is the face me object and it faces the camera. The other sub-component is a fake shadow. It is the same object but with translucent gray fill and it is on the ground. Then this would be set to face the sun vs. camera, and ideally would set the length of this to scale based on the hight of the sun angle. Maybe an alternative is to swap out your face me objects for real 3d objects just before exporting to Vray. If you don't like the look of these 3d objects you could always make a duplicate rendering with your faceme components and layer in Photoshop to mask these back in. You would just have to make sure the faceme objects are slightly larger than the 3d objects, and you run into issues of seeing the same object from multiple views, don't know how Vray deals with that and faceme objects.
  • Randomly replacing Component for other?

    5
    0 Votes
    5 Posts
    269 Views
    DavidBoulderD
    Would a dynamic component work with random attribute built into it. But when you take your first instance and copy it to other locations, I don't know if it re-calculates the random#. I haven't really used the random feature before. But I can see where it would be nice to quickly click on component instances and have it randomly replaced with a component from a specific list. At the start of the ruby it could ask for names of components to include in the list, or maybe the ruby is written for rubys with specific prefix in their name.
  • Need plugin like line2tube but ...

    16
    0 Votes
    16 Posts
    3k Views
    pilouP
    @unknownuser said: I fixed it because of your very useful comments...
  • Tube along path(s) ... Help Please

    3
    0 Votes
    3 Posts
    278 Views
    H
    Thanks very much !
  • Importing and placing components

    7
    0 Votes
    7 Posts
    299 Views
    TIGT
    You have exited your Tool so the View refreshes... selectSelectionTool changes to that tool... No hack... No magic involved...
  • Lines?

    5
    0 Votes
    5 Posts
    312 Views
    I
    THanks Will check it out!
  • Forum Plugins vs. Developer Forum

    16
    0 Votes
    16 Posts
    952 Views
    mitcorbM
    Here's my 2 cents strictly as a user. I tend to agree with TIG's view. But I think there may always be some overlap, because strict division of function or content requires discipline, and in the heat of the moment to express an issue, maybe the discipline takes back burner. I do peruse the dialogue in Developer's Forum when I see it in New Posts. I even scroll through the coding when it is displayed, in a vague hope that I can make sense out of the language conventions, or simply to marvel at how bizarre and foreign it is to conversational language.
  • Extrude more than one face at once

    2
    0 Votes
    2 Posts
    248 Views
    pilouP
    You can't you must use something like Joint PushPull by Fredo6 or Projections by Didier Bur...
  • Delete a material that's being used (using Ruby)

    7
    0 Votes
    7 Posts
    404 Views
    tridemT
    @tig said: .. but to do it within a script .. doh! .. actualy for me it's time to go to sleep
  • Screen Shots

    14
    0 Votes
    14 Posts
    846 Views
    pilouP
    If by chance you use Firefox don't miss this one!(free) That pick image, part of screen, or screen and directly open online in a Toshop like! (free too) Advantage? : It's free and you are not obliged to at be home Fractal is'nt it? [image: D4d9_Screen.png]

Advertisement