Git Product home page Git Product logo

su-extensions's Introduction

SketchUp Extensions

A handful of useful extensions for SketchUp 2017+.

  • Hide Back Faces (back-face culling)
  • State Machines
  • Exact Measurement (Windows only, WIP)
  • Fly Tool (Windows only, no longer in development)

install.ps1 can be used to install all plugins for SketchUp 2017 (you will need to restart SketchUp). You can modify the script if you have a different version.

Hide Back Faces

Adds a toggle under the Extensions menu which hides the back sides of faces -- this is also known as "back-face culling." As you orbit/pan around the scene, faces will be continuously updated. This is especially useful for working with interior spaces, or previewing how a model will appear in game engines that render single-sided polygons. You can reverse faces (by right clicking and choosing "Reverse Faces") to flip which side is considered "front."

Hide Back Faces only applies to untagged faces (aka "Layer 0"), and doesn't apply to groups or components unless you edit them. Selected faces will also be kept visible.

The extension works by moving all hidden faces to a separate, hidden tag. The faces are only updated when you move the camera or change selection. They may get out of sync while using other tools; just move the camera slightly to update.

You can use Sketchup's shortcut preferences to attach a shortcut to the menu item. I recommend "Shift-K," which mirrors the "K" shortcut for viewing Back Edges. You may also find it useful to attach a shortcut to "Reverse Faces."

Known issues

These are a result of the limitations of Ruby extensions.

  • If you undo a command while Hide Back Faces is enabled, it will temporarily pause to avoid clearing Redo commands. It resumes automatically when you make any other change.
  • Select All and box-select will only select visible faces. (Triple-clicking will select all connected faces, even hidden.)
  • It can be slow with large numbers of faces in a single object

su-extensions's People

Contributors

vanjac avatar

Stargazers

j_jones avatar

Watchers

 avatar

su-extensions's Issues

Overwriting undo stack

This is still an issue occasionally, though it seems to only happen a few Undo levels deep. Not sure how to reproduce.

Disallow nested animations

When StatesEditor is opened, detect if a parent or child has states. If the selected object does not have states, block the editor from opening. Otherwise, open a confirmation dialog to delete states from the other object.

Zooming while using move tool with back-faces hidden can crash

  • Switch to the move tool with nothing selected (so it's in "pick" mode by default)
  • Hover over the model and zoom in and out rapidly. If any face changes visibility, sometimes Sketchup will crash. More likely if there are more faces affected.

This doesn't affect similar tools with "pick" states (rotate, push/pull...).

There's probably some issue with updating faces in a ViewObserver while the move tool is active

TODO: test in 2021.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.