Exporting layers to Photoshop
-
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
-
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
-
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/ -
That site isn't working for me. Is that Martin Reinhart's site?
-
@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. -
Oh yeah, It's Matt's. Whatever was wrong before it seems to be back up and running now. Thanks
-
@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!
Advertisement