"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/devel/povray01.py" between
pymol-v1.8.6.0.tar.bz2 and pymol-v2.1.0.tar.bz2

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

povray01.py  (pymol-v1.8.6.0.tar.bz2):povray01.py  (pymol-v2.1.0.tar.bz2)
skipping to change at line 23 skipping to change at line 23
pov = cmd.get_povray() pov = cmd.get_povray()
f=open("tmp_pymol.pov",'w') f=open("tmp_pymol.pov",'w')
f.write(pov[0]) f.write(pov[0])
f.write("#include \"colors.inc\"\n"); f.write("#include \"colors.inc\"\n");
f.write("#include \"stones.inc\"\n"); f.write("#include \"stones.inc\"\n");
f.write("#include \"woods.inc\"\n"); f.write("#include \"woods.inc\"\n");
f.write(pov[1]) f.write(pov[1])
f.write("plane {<0,1,0.5>, -70 texture{T_Grnt10 scale 40}}\n"); f.write("plane {<0,1,0.5>, -70 texture{T_Grnt10 scale 40}}\n");
f.write("sphere {<14,4,-132>, 7.0 pigment{color Grey} finish{reflection 1.0 meta llic}}\n"); f.write("sphere {<14,4,-132>, 7.0 pigment{color Grey} finish{reflection 1.0 meta llic}}\n");
for x in xrange(-30,30,5): for x in range(-30,30,5):
f.write("sphere {<%6.4f,-12,-100>, 2.0 texture{P_WoodGrain1B scale 8}}\n"%(x) ) f.write("sphere {<%6.4f,-12,-100>, 2.0 texture{P_WoodGrain1B scale 8}}\n"%(x) )
f.write("box {<-17,17,-120>,<13,15,-160> pigment {color Red}}\n") f.write("box {<-17,17,-120>,<13,15,-160> pigment {color Red}}\n")
f.close() f.close()
cmd.refresh() cmd.refresh()
os.system("x-povray +Itmp_pymol.pov +Otmp_pymol.png +W300 +H300 +A") os.system("x-povray +Itmp_pymol.pov +Otmp_pymol.png +W300 +H300 +A")
cmd.load_png('tmp_pymol.png') cmd.load_png('tmp_pymol.png')
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)