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

    Exporting layers to Photoshop

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 3 Posters 418 Views 3 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.
    • I Offline
      ivan_pajares
      last edited by

      Hi there,

      let me first introduce myself: I'm Ivan, architect & teacher and Sketchup user...

      My first question now:

      I've modified thomthom's tt_export.rb script to get different layers of information for photoshop compositing.

      When I load a specific style I have to do it twice to get sketchup to load it properly (i.e. no edges style to get only the shadows).Presently I'm doing it like this:

      
          styles = Sketchup.active_model.styles
          styles.selected_style = styles["OnlyShadows"]
          UI.messagebox "Changing styles"
          styles.selected_style = styles["OnlyShadows"]
          UI.messagebox "Again..."
          filename_shadows = filename + "_shadows.png"
          UI.messagebox filename_shadows
          model = Sketchup.active_model
          shadowinfo = model.shadow_info
          value = shadowinfo["DisplayShadows"]=true   
      
      

      If I try to do it straight away it doesn't turn edges off. Is this a bug or am I doing it wrong?
      I would love to forget about clicking 'OK' twice for every layer I export...

      TIA

      1 Reply Last reply Reply Quote 0
      • I Offline
        ivan_pajares
        last edited by

        OK,I just didn't think about

        view.refresh
        

        ...

        Now I get the first image & the profiles but: I don't get the shadows with 'no edges' as defined in the style... unless I repeat the command as in:

            
            styles = Sketchup.active_model.styles
            styles.selected_style = styles["OnlyShadows"]
            refreshed_view = view.refresh
            styles.selected_style = styles["OnlyShadows"]
            refreshed_view = view.refresh
            filename_shadows = filename + "_shadows.png"
            value = shadowinfo["DisplayShadows"]=true
            refreshed_view = view.refresh
        
        

        Is this normal or am I missing something again?

        Regards

        1 Reply Last reply Reply Quote 0
        • B Offline
          Brett McAllister
          last edited by

          I recommend you go read this PDF to get you started otherwise you will be tearing your hair out and nothing will make sense.
          http://www.autosketchup.com/

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            That site isn't working for me. Is that Martin Reinhart's site?

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

            1 Reply Last reply Reply Quote 0
            • B Offline
              Brett McAllister
              last edited by

              @chris fullmer said:

              That site isn't working for me. Is that Martin Reinhart's site?

              No, it's a chap called Matthew Scarpino.
              The site seems to work all right for me, if it still doesn't work and your interested in the PDF, I will email you a copy.

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                Oh yeah, It's Matt's. Whatever was wrong before it seems to be back up and running now. Thanks

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

                1 Reply Last reply Reply Quote 0
                • I Offline
                  ivan_pajares
                  last edited by

                  @brett mcallister said:

                  I recommend you go read this PDF to get you started otherwise you will be tearing your hair out and nothing will make sense.
                  http://www.autosketchup.com/

                  OK, I will.

                  Thanks!

                  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