ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Hashing numbers

    6
    0 Votes
    6 Posts
    485 Views
    fredo6F
    Actually nothing as changed with SU7. I simply thought that, because SU7 offers the feature to automatically split edges when intersecting, it could cause a probleme when you transform a model interactively. What I found out, is that his feature is a property of the Line tool. In Ruby, if you create an edge that happens to intersect another one, it is not 'cut'. Same when you transform via the method entities.transform_entities, for instance by scaling or moving. Otherwise just some clarifications on the differences between Object Reference and entityID for Sketchup entities. Object Reference is unique at a given time, but can change whenever the model changes. Sketchup may need to reconstruct geometry and alter the objects even if they remain the same visually in the model. So Object Reference should be used for scanning a selection in one pass, but not across modifications of the model. The most obvious case where this would be a problem is when you perform an Undo. EntityIDsurvives to changes of geometry in the model via transformation. If you scale an edge or a face, it will preserve its entityID. Same for Undo. However, it is good to keep in mind that for Components, entityID are attached to the Component DEFINITION, not to the instance. Which means that if you do a recursive test on a selection, you can come across the same entityID several times for different component instances. Indeed, you could keep track of the entityID of each of the Component Instances, which is unique by Instance. So, you may think that the hash key should then be a combination of the Instance ID and entityID. Wrong, because your instance may itself be embedded within a Component, which has itself several instances. OK, this looks complex, but remember that the problem exists only if you explore the model recursively, that is going 'inside' components. If you keep at one level, then both Object Reference and entityID are somehow unique at a given level. Fredo
  • Start_operation backward compatibility

    3
    0 Votes
    3 Posts
    425 Views
    thomthomT
    Thanks for the tip. I just made use of it and it's working good. Operation took abtou 2 minutes in SU6 while no more than 30 seconds in SU7.
  • Find/Select all Components & Component Browser

    6
    0 Votes
    6 Posts
    456 Views
    A
    @alz said: Also, I thought I saw this somewhere awhile ago -- it was a Component Browser that acted like a Windows Browser (with back,forward,up,down,etc.). But I can't remember where I saw that. It isn't east with the current Component Browser to quickly navigate through several sub-directories. I typically have to pop back to the top and drill back down if I get lost. BTW, I remembered where I saw this: http://wiki.renderplus.com/index.php?title=Select_Component
  • Sketchybevel not working - help requested

    3
    0 Votes
    3 Posts
    364 Views
    P
    OOPS!! Sorry for the post! I found out myself that you have to select the entire box. It is already mentioned about this in another long thread. I saw it just now. Sorry for the trouble. With best regards PRSS
  • Snapping

    4
    0 Votes
    4 Posts
    372 Views
    P
    Thanks for your responses. I take the point about the axis and thought about that. It is a 'workable' alternative but there are a couple of issues: 1 - where components are downloaded the axis may not be in the correct place to work with ease. 2 - I am thinking about room design, and when placing components such as cabinets, it would be desirable to be able to place a new cabinet on the left or the right of a previouc one, but a component can only have one axis so could not be easily 'snapped' on either side. As far as the 'Snapping' tool is concerned, I'm not going mad after all - I found it. It's the 'Place Adjacent' item here http://wiki.renderplus.com/index.php?title=RpTools#Place_Adjacent. Shame it's not available on it's own
  • Ruby dev environment

    10
    0 Votes
    10 Posts
    4k Views
    R
    I find Notepad++ easy and nice. Here please find some files which makes ruby editing in Notepad++ easier. The ruby.xml goes to plugins/API folder and the stylers.xml goes into C:\Documents And Settings(users)\application support\notepad++ (or something like that... I wish I had windows right now). Further instructions in the notepad++ website. ruby.xml makes the autocompletion easy. Happy scripting!!! Notepad++ autoCompletion for ruby and Sketchup
  • Model.import fails to import dwg's

    2
    0 Votes
    2 Posts
    402 Views
    J
    Alright, the error popped up because of an error in the file path (fileone or filetwo in the code). Silly mistake made frustrating by a misleading error message. However, I have these observations: model.import and model.export have a second parameter which suppresses the summary window. This works exporting, and importing skp files, but does not suppress the summary for dwg files. So the user must click on the OK button for every file which is imported. model.save does not function as the application's file:saveas command, in that the open skp file does not assume the name of the saved file. model.save functions more like file:save a copy as. These two points, along with the lack of a method to close a file (have I missed it?) makes automating any sort of batch processing difficult. Perhaps its intentional, but it limiting for a scripting language.
  • [Question] Ray cast a png

    14
    0 Votes
    14 Posts
    731 Views
    CadFatherC
    so although you can see through the transparent area of the image, you cannot access any info or get behind the scenes on how that is achieved.. last conceptual gasps before giving up then.. can ruby recognize image colour? (i think i can answer my own question in the negative) could a ruby trace a line stroke (something like Didier's 'strokefield generator' if you know what i mean?) lastly, (big chance) could a ruby script recognise/import an ai/svg file? PS already tried the svg plugin but it's buggy (crashes and for some reason it messes up sandbox tools) (promise i give up after this)
  • Divide Curves

    13
    0 Votes
    13 Posts
    3k Views
    AnssiA
    I would also like more control of the segment lenght of the Freehand tool, either beforehand or after drawing. Anssi
  • Ruby working units?

    2
    0 Votes
    2 Posts
    210 Views
    W
    SketchUp's internal units are all in inches. If you prefer to work in meters, just add '.m' after every number. http://download.sketchup.com/sketchuphelp/gsu6_ruby/Docs/Ruby-Numeric.html
  • Bugsplat Upon Opening

    4
    0 Votes
    4 Posts
    318 Views
    CadFatherC
    i see, in these cases i always start from scratch - if you want, you can download my rubyset. it is a collection of many plugins (for pc but may work on mac) - maybe you'd find it useful. http://www.quarr-it.com look in resources (i'm also working on an updated set coming out sometime 'soon')
  • Balustrade components

    10
    0 Votes
    10 Posts
    2k Views
    rodrigonotorR
    Work now! I think maybe a old version of balustrade.rb is installed in my plugins folder, erase and install balustrade_components.rb and work fine, more later I will try a test whit the component option. Thank you for this great plugin. Saludos [image: 2lfn_balustrade.jpg]
  • Layer Manager Problem

    3
    0 Votes
    3 Posts
    308 Views
    S
    that did it! Thanks. I'm sure I must have messed it up somehow.
  • About 'intersect_with' method

    8
    0 Votes
    8 Posts
    2k Views
    EdsonE
    didier, my mouth was watery after i saw the animation! i wish you find a way of making it public. it would be a success, for sure. congratulations.
  • Context menu Submenu

    12
    0 Votes
    12 Posts
    2k Views
    R
    @tony bombata said: question - does organizer work with encrypted scripts? Yes and no. It will load encrypted scripts, but the script's menu location won't change unless the author has adopted the Organizer menu code (it's very easy, but no one seems to want to do it).
  • [HowTo?] Find Instance parent's Instances

    6
    0 Votes
    6 Posts
    445 Views
    M
    That is exactly what I was looking for ! Thank you Marcio Obs: A new documentation for SU7 Ruby APIs could be nice. It could be a kind of open Wiki so we all could help improve it, as write documentation is ... boring.
  • Math functions and SU7

    3
    0 Votes
    3 Posts
    438 Views
    M
    Without "include Math" statement (directly from Ruby's console or from any autoloaded plugin), it does not work here. With "Math included", it works fine. Marcio
  • The best

    3
    0 Votes
    3 Posts
    584 Views
    C
    Thanks David that was very helpful
  • Rotate a texture

    9
    0 Votes
    9 Posts
    2k Views
    thomthomT
    I'm working on mirroring the texture and UV mapping of front faces to the backside. Anyone got any idea on how to do that?
  • Randomise textures

    6
    0 Votes
    6 Posts
    611 Views
    thomthomT
    Well, ... I just dived into SU ruby because I wanted to create a ruby that mirrored the texture from the front side of faces to the back side of faces. I've been digging in the docs to try to work out how to position textures. I only managed to position a texture in 2d reliably. Even then I'm not sure I'm 100% sure what's happening. I haven't managed at all to get any info from the front face UV co-ordinates that makes any sense. I had hoped that I'd find some good info on this forum. But seeing that the general consensus on SU Ruby texture mapping is confusion I'm now worried to what task I've let myself into. I'd like to try to prompt some of the SU dev team to shed some light to this matter of UV coordinates.

Advertisement