• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Ruby script matte for photoshop

Scheduled Pinned Locked Moved Developers' Forum
14 Posts 9 Posters 1.6k Views 9 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.
  • C Offline
    crosswaves
    last edited by 16 Jan 2009, 01:41

    Is there a ruby script that will color the 6 faces of a cube different colours, or a complex model. I would then export the file in 2d to photoshop and create simple mattes from the colored faces for painting.

    1 Reply Last reply Reply Quote 0
    • C Offline
      Chris Fullmer
      last edited by 16 Jan 2009, 04:35

      Hmm, there is a big difference between a simple model and a complex one. Also, would the model be built specifically to be output to Photoshop?

      I do stuff like this regularly, but I always know before hand that my model is going to photoshop to be enhanced so I only add bright, contrasting colors so that they export well to photoshop and I can separate them there easily with the magic wand selection tool. Is that sort of what you have in mind?

      I don't think there is a ruby that does that automatically. Plus, how would it know how to color what objects? A simple is easy if you just want each face colored something different. But a complex model is another story where you probably don't want the color divided up by face, but rather by object. I do that all by hand. its very fast going.

      Is that anything like what you're thinking of?

      Chris

      Lately you've been tan, suspicious for the winter.
      All my Plugins I've written

      1 Reply Last reply Reply Quote 0
      • T Offline
        thomthom
        last edited by 16 Jan 2009, 10:20

        I just made a script for Free Agent that would make all materials black, except the selected material which is made white. That makes for a way to render out an material mask layer.

        Not quite what you asked for, but might it be of use?

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

        1 Reply Last reply Reply Quote 0
        • K Offline
          kwistenbiebel
          last edited by 16 Jan 2009, 10:23

          @thomthom said:

          I just made a script for Free Agent that would make all materials black, except the selected material which is made white. That makes for a way to render out an material mask layer.

          Not quite what you asked for, but might it be of use?

          That's an excellent idea!
          Render freaks love this for compositing and editing their output in Photoshop.

          Any chance you'd make that script public?

          1 Reply Last reply Reply Quote 0
          • S Offline
            Stinkie
            last edited by 16 Jan 2009, 10:30

            +1!

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 16 Jan 2009, 11:05

              Ok, it's posted. http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=15790

              (Sorry for bringing this thread somewhat off-topic.)

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

              1 Reply Last reply Reply Quote 0
              • P Offline
                plot-paris
                last edited by 16 Jan 2009, 13:06

                this may go a bit far...

                but is it possible to write a script, that exports a batch of alpha-maps, one for each material? if you have faces with textured materials it sometimes can be quite difficult to select it with the magic wand. with such a pile of alpha-maps it would be a lot easier...
                alphamaps.jpg

                1 Reply Last reply Reply Quote 0
                • T Offline
                  thomthom
                  last edited by 16 Jan 2009, 13:10

                  Yes. that is possible.
                  but I'm not sure if this is what the OP wants. He was talking about the 6 sides of a cube. Not sure if these faces had separate faces to begin with. And I'm not sure how it's mean to work for a complex model.

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

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    plot-paris
                    last edited by 16 Jan 2009, 13:58

                    yes, true. my idea is a completely new thing and may be a bit off topic hear.
                    with complex models the 6 sided colouring could really be quite tricky. what happens with curved surfaces for example?

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      Ecuadorian
                      last edited by 23 Jan 2009, 20:58

                      OP:

                      You have SU Pro, which can export to Piranesi. Why not give it a try?

                      -Miguel Lescano
                      Subscribe to my house plans YouTube channel! (30K+ subs)

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        gaganraj
                        last edited by 24 Jan 2009, 20:32

                        alpha masks would be HUGE addition. I am constantly needing to separate my content after a vray render and have to make sloppy selections in photoshop. I second plot-paris's request / suggestion!

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          crosswaves
                          last edited by 18 Feb 2009, 01:57

                          Thank you for all your suggestions. My intention is to export primarily to Photoshop, so I can produce quick colour illustrations. Currently I manually paint each surface in SketchUp with bright or contrasting colours,before I export a 2d file. I can produce a mask of the surface in Photoshop it is just slow. I had hope some one would have a script that would automate the process in SketchUp. Colour by layer name or entity maybe. The ability to make Alpha masks when exporting would be great. I have looked at Piranes,it looks very complex I will give it a try.

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            thomthom
                            last edited by 18 Feb 2009, 08:11

                            @crosswaves said:

                            Thank you for all your suggestions. My intention is to export primarily to Photoshop, so I can produce quick colour illustrations. Currently I manually paint each surface in SketchUp with bright or contrasting colours,before I export a 2d file. I can produce a mask of the surface in Photoshop it is just slow. I had hope some one would have a script that would automate the process in SketchUp. Colour by layer name or entity maybe. The ability to make Alpha masks when exporting would be great. I have looked at Piranes,it looks very complex I will give it a try.

                            So you don't want to mask out materials, but objects or layers? My script shouldn't be too hard to adapt for that. But I just want to make sure first that's what you're after.

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

                            1 Reply Last reply Reply Quote 0
                            • X Offline
                              xrok1
                              last edited by 19 Feb 2009, 04:53

                              would it be possible for the script to temporarily make SU ground and sky white/black as well? 😄

                              “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                              http://www.Twilightrender.com try it!

                              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