by reberts2 » Wed Sep 05, 2018 12:01 pm
reberts2
Wed Sep 05, 2018 12:01 pm
Thanks Paul,
I'm hoping between the Rhinoscript/Python docs and samples and maybe someone sharing their work, I'll come up with a simple solution.
Sincerely,
Rick
PS Here is the python script I have modified that is workinng well for me.
The only hitch is that custom Parallel projection viewports (views) MUST actually be Perspective projection viewports (views) with long lens legnth (1000mm) to render correctly.
import rhinoscriptsyntax as rs
RViews = ["1 left facing" , "2 front facing", "3 right facing", "4 top view",
"5 left view", "6 front view", "7 back view", "8 right view", "9 bottom view"]
Outpath = r"C:\batch" #do NOT add trailing backslash
for i in range(len(RViews)):
rs.RestoreNamedView(RViews[i])
rs.Command("!_-Render")
command = "_-SaveRenderWindowAs \"" + Outpath + "\\" + RViews[i] + ".png\""
rs.Command(command)
#print command
rs.Command("_-CloseRenderWindow")
Win 7 64 | GTX260 x 2 | Core i7 860 | 4GB & OSX 10.6 | 8600M GT | Core 2 Duo | 4GB