Intro to Coding in SketchUp with the Ruby Code Editor (Video)

Intro to Coding in SketchUp with the Ruby Code Editor (Video)

https://www.youtube.com/watch?v=cKz6m7sR-uw&feature=youtu.beThis video provides an introduction to Ruby scripting with the Ruby Code Editor extension in SketchUp. Scripting in SketchUp is also a good "intro to coding" exercise because you not only learn a usable scripting language (Ruby), you can even use it to create 3D models that you can manufacture (e.g. 3D print) afterwards.This is a free sample instructional video from the book "Architectural Design with SketchUp: 3D Modeling, Extensions, BIM, Rendering, Making, and Scripting" (2nd Edition). I discuss this topic more in detail in that book's Chapter 7.Want more of these videos? If you own the book, use the password from the inside cover to gain access to all of my remaining videos on Wiley's website: http://www.wiley.com/go/schreyer2e. If you don't yet have your own copy, follow the links in the sidebar to get one. It is a great reference for SketchUp! ...
Read More
Fun with Coding in SketchUp (for all ages) (Video)

Fun with Coding in SketchUp (for all ages) (Video)

https://youtu.be/BlC7eerfS1U?list=PLxUo4IvucruefSR-dwEs7pHAjQZgoOhw0In this video I show how you can use Ruby coding in SketchUp to have some fun: Create 3D geometry, draw with code, bend the software to your will...This is a free sample instructional video from the book "Architectural Design with SketchUp: 3D Modeling, Extensions, BIM, Rendering, Making, and Scripting" (2nd Edition). I discuss this topic more in detail in that book's Chapter 7.Want more of these videos? If you own the book, use the password from the inside cover to gain access to all of my remaining videos on Wiley's website: http://www.wiley.com/go/schreyer2e. If you don't yet have your own copy, follow the links in the sidebar to get one. It is a great reference for SketchUp! ...
Read More
Just Published: Two New SketchUp Extensions (Random Tools & Scale By Tools)

Just Published: Two New SketchUp Extensions (Random Tools & Scale By Tools)

I just published two new SketchUp extensions that were both based on Ruby code that was either previously posted on this site or in my book, Architectural Design with SketchUp". Random Tools Ever wanted to place large swaths of randomly-arranged grass in SketchUp as shown in the image above? Have you been frustrated by textures that repeat a bit too much on copied wood boards? Do I have an extension for you...Read the announcement Scale By Tools Using the provided tools, you can scale, move or rotate objects based on an image or a mathematical equation. For the equation, you can choose between a trigonometric function or a power function. It is also possible to use image data to push/pull faces or move vertices, which can be useful to create ripples on water or a heightfield topography.Read the announcement...
Read More
Creating Variation in Texture Copies (Snippet)

Creating Variation in Texture Copies (Snippet)

This collection of small script snippets presents handy little routines that are usually too small to put into a proper extension. Use them with the Ruby Code Editor (just paste the code and hit “run”) or make them more permanent as a menu item (see Appendix D in my book).This post follows a theme that I explored in several other of my script examples as well: Copied objects in SketchUp don't appear overly realistic if they represent natural items; their geometry is simply too perfect. This is true for landscape items (trees, shrubs) but also for things like wooden boards (see left side in the image above): On a collection of real boards, the knots would be distributed somewhat randomly, not as shown here.Turns out, we can fix this easily with a few lines of code. Just select textured objects, run the code snippet below, and your textures are randomized enough to look realistic (as can be seen in the right side of the image...
Read More
Randomized object placement on faces (Snippet)

Randomized object placement on faces (Snippet)

This collection of small script snippets presents handy little routines that are usually too small to put into a proper extension. Use them with the Ruby Code Editor (just paste the code and hit “run”) or make them more permanent as a menu item (see Appendix D in my book).At least when it comes to creating realistic-looking vegetation in SketchUp, it is important to be able to randomly place, scale, and rotate objects. Nothing looks worse than a "sterile" copied/pasted row of trees, for example. Of course, this applies to other objects as well, like e.g. a shag carpet or fur. Let's fix this with today's code snippet.Typically, the objects to be placed would come in the form of components (trees, grass, bushes, as in the image above). And those then need to be placed somewhat randomly on one or more faces in your model. A good example for that is a lawn, as I discussed in Chapter 5 in my book. As I mention...
Read More