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

    How to make a LED light stripe?

    Scheduled Pinned Locked Moved V-Ray
    renderpluginsextensions
    14 Posts 5 Posters 11.9k Views 5 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.
    • V Offline
      Vejlstrup
      last edited by

      Thank you very much Sir, exactly what I wanted.
      I will see if I can learn from some of your changes.

      In the real room, the funtional light will probably come from the spotlights, but it's not quite sure yet.

      Thank you very much.

      1 Reply Last reply Reply Quote 0
      • V Offline
        Vejlstrup
        last edited by

        Can I ask you in which way you purged the file? I used a Cleaner plug-in, but I'm pretty new, so it would be nice to know which function you used.

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          Just use Model Info > Statistics > Purge Unused... to do it to everything.

          My 'Purge All' tool is very similar... but that allows you to purge only specific types of thing - e.g. 'Layers' - if desired it also can report what it has done in more detail...
          http://sketchucation.com/resources/pluginstore?pln=PurgeAll

          TIG

          1 Reply Last reply Reply Quote 0
          • dkendigD Offline
            dkendig
            last edited by

            fyi, purging unused materials from the sketchup model, will cause certain V-Ray materials to not function properly. This is because we allow materials to use other materials as sub materials. Sub materials may not be applied to any objects in the SU scene, so it assumes it is safe to purge, even though this will break any materials utilizing that sub material

            Devin Kendig
            Developer

            1 Reply Last reply Reply Quote 0
            • jiminy-billy-bobJ Offline
              jiminy-billy-bob
              last edited by

              @dkendig said:

              fyi, purging unused materials from the sketchup model, will cause certain V-Ray materials to not function properly. This is because we allow materials to use other materials as sub materials. Sub materials may not be applied to any objects in the SU scene, so it assumes it is safe to purge, even though this will break any materials utilizing that sub material

              Can't you find a way to prevent this ? Like, if a material has sub-materials, apply it to an empty group.

              group = Sketchup.active_model.entities.add_group()
              group.material = mat
              

              Or do this temporarly when a "purge materials" button is clicked from the Vray UI. The material would still get deleted when purged from SU's material window, but not from Vray, and you wouldn't pollute the model.

              I use a similar snippet from TIG for my own plugin, but with layers.

              25% off Skatter for SketchUcation Premium Members

              1 Reply Last reply Reply Quote 0
              • dkendigD Offline
                dkendig
                last edited by

                we handle a purge unused properly when you use our UI, but no, we aren't going to litter a SketchUp model with empty groups to prevent the native purge unused tool in SketchUp from removing materials that are used as sub materials. SketchUp needs a way to mark a material as being used, or an observer that allows us to handle that function, once they add that ability, we will support their native tool.

                Devin Kendig
                Developer

                1 Reply Last reply Reply Quote 0
                • jiminy-billy-bobJ Offline
                  jiminy-billy-bob
                  last edited by

                  @dkendig said:

                  we handle a purge unused properly when you use our UI

                  Ho sweet, I didn't know !

                  25% off Skatter for SketchUcation Premium Members

                  1 Reply Last reply Reply Quote 0
                  • ToboboT Offline
                    Tobobo
                    last edited by

                    @tig said:

                    Just use Model Info > Statistics > Purge Unused... to do it to everything.

                    My 'Purge All' tool is very similar... but that allows you to purge only specific types of thing - e.g. 'Layers' - if desired it also can report what it has done in more detail...
                    http://sketchucation.com/resources/pluginstore?pln=PurgeAll

                    TIG's tool is the one i use to get around the VRay linking of sub materials, i just remove material from the 'to be purged' list

                    Toby

                    Philippians 4:13

                    I can do everything through him who gives me strength.

                    1 Reply Last reply Reply Quote 0
                    • dkendigD Offline
                      dkendig
                      last edited by

                      @tobobo said:

                      @tig said:

                      Just use Model Info > Statistics > Purge Unused... to do it to everything.

                      My 'Purge All' tool is very similar... but that allows you to purge only specific types of thing - e.g. 'Layers' - if desired it also can report what it has done in more detail...
                      http://sketchucation.com/resources/pluginstore?pln=PurgeAll

                      TIG's tool is the one i use to get around the VRay linking of sub materials, i just remove material from the 'to be purged' list

                      That isn't necessary if you use the purge unused option in the V-Ray material editor

                      Devin Kendig
                      Developer

                      1 Reply Last reply Reply Quote 0
                      • ToboboT Offline
                        Tobobo
                        last edited by

                        @dkendig said:

                        That isn't necessary if you use the purge unused option in the V-Ray material editor

                        What I meant was I use TIG's plugin to purge the model of everything else without losing the VRay materials.

                        Toby

                        Philippians 4:13

                        I can do everything through him who gives me strength.

                        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