sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    [REQ] Group different color than Component

    Scheduled Pinned Locked Moved Plugins
    3 Posts 2 Posters 465 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by

      @unknownuser said:

      Is this possible with some Ruby?

      NO ... sorry.

      Geom::BoundingBox class is a subclass of Object. Neither it, nor Object, have a color attribute.

      Geom::BoundingBox is not like other Sketchup::Drawingelement subclasses that have a material attribute (that they inherit from their Sketchup::Drawingelement superclass.)

      Currently the BoundingBox color is controlled globally via:
      model.rendering_options['HighlightColor']

      Any change would need to be made in the Sketchup C++ source.

      In addition to Component and Group boundingbox color, there needs to be a normal object boundingbox (or highlight) color. (Such as when you click on a single Face or Edge.)

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Well, you could make a custom Tools that did highlight groups/components with different bounding boxes...

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          @thomthom said:

          Well, you could make a custom Tools that did highlight groups/components with different bounding boxes...

          Naw... he wishes the boxes to be colored differently using ALL tools (especially the native tools.)

          But wouldn't it be interesting if class ComponentDefinition had a @boundingboxcolor attribute ??

          We wouldn't be limited to only a few colors (enitity, image, group, component, model.)

          Components of different definitions could have different boundingbox colors!

          Another idea... take a Group or Components boundingbox color from it's layer color!

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement