Re: [PyMOL] pymol 3D movies

2014-08-25 Thread Christian Becke

Hi,

Am 25.08.2014 21:44, schrieb Marcelo Marcet:

Thank you for taking the time to reply to this question and for
offering your help. I am also interested in quad-buffered stereo play
back.


Sorry, maybe I wasn't clear in my first mail: I don't have experience
with quad-buffered stereo playback. All I have done is preparing 3D
stereo movie files using PyMOL and ffmpeg[1] which I can play on a 3D TV 
(using a side-by-side stereo movie file and polarization glasses) or on 
a regular beamer (anaglyph red/cyan movie with red/cyan glasses).
I expect that one could play these (or similarly prepared) movie files 
with a movie player that makes use of OpenGL quad-buffered 3D 
capabilities of a graphics card - but I never tried this myself.
AFAIU, there is no such thing as a quad-buffered movie file - it's just 
the movie player that plays back a 3D stereo movie file using OpenGL 
quad-buffered stereo on hardware that supports it. A player that might 
work is bino[2], but, as I said, I never got around to try it out.



Would you be able to provide us with a bit more methodology information?
It sounds like you have a script that helps you save the side-by-side
images and later you use a software called ffmpeg to render the movie.
Is this correct?


Yes, this is correct. Here is how I did it:
1) Prepare a movie in PyMOL
2) run the attached python script ("run /path/to/mpng_3d.sh"). This will 
add a new command to pymol: mpng_3d
It works similar to the mpng command, but saves 2 images for each movie 
frame, one for the left and one for the right eye. If ray traced frames 
are desired, do "set ray_trace_frames, 1". You can also play around with 
the stereo_angle setting (e.g. "set stereo_angle, 3"). This defines the 
difference in viewing angle of the images for the left and right eye.

The mpng_3d command takes the following options:
mpng_3d , , , [start=1], [end=-1]
render stereoscopic frames sized  x  pixels.
Files will be named _%04d.png.
Render frames  to  (default: all frames)

Example: "mpng_3d my_movie, 1920, 1080" will write png files called 
my_movie_0001.png, my_movie_0002.png, ...
If ray_trace_frames is set (recommended), the images will be ray traced 
and have a size of 1920x1080 pixels (i.e. full HD).
3) Use ffmpeg to encode a movie from the individual frames saved with 
mpng_3d:

For h.264 encoding:
ffmpeg -i "my_movie_%04d.png" \
-an \
-r 30 -aspect 1.78 -pix_fmt yuv420p \
-c:v libx264 -tune animation \
-vf stereo3d=al:sbsl \
-profile:v baseline -level 3.0 -refs 4 -qmin 4 \
"my_movie.mp4"

For WMV encoding:
ffmpeg -i "my_movie_%04d.png" \
-an \
-r 30 -aspect ${aspect} \
-vf stereo3d=al:sbsl \
-q:v 2 -c:v msmpeg4v3 \
"my_movie.wmv"

These are the commands I used on linux. Similar ffmpeg commands should 
also work on Windows or OS X. Video quality and file size were 
reasonable with the above settings, and the files played all right on 
almost all video players I tested (the wmv files work with all versions 
of PowerPoint I tested, the h.264 movies do not work with WinXP).
If you change the size of the images, also change the -aspect parameter 
in the ffmpeg commands accordingly (for 1920x1080 pixel images: 
aspect=1920/1080=1.78).
The above commands produce side-by-side stereo movies, i.e. the images 
for the left and right eye are shown next to each other in each frame

of the movie. Check the ffmpeg docs[3] for other output options.
For some movie players (e.g. the one on my LG 3D TV) it might be 
necessary to scale the pymol-rendered frames to half-width before 
encoding them to a side-by-side stereo movie with ffmpeg. This can be 
done e.g. with the "convert" command from the imagmagick[4] suite.


I hope this helps!

Christian

[1] http://ffmpeg.org
[2] http://bino3d.org
[3] http://ffmpeg.org/ffmpeg-filters.html#stereo3d
[4] http://www.imagemagick.org

--
Christian Becke

Freie Universität Berlin
Fachbereich Biologie, Chemie, Pharmazie
Institut für Chemie und Biochemie
AG Strukturbiochemie

Takustr. 6
14195 Berlin
Germany

Phone: +49 (0)30 838-57344
Fax: +49 (0)30 838-56981
E-mail: christian.be...@fu-berlin.de
# vim: set fileencoding=utf8 ts=4 sw=4 noexpandtab :

# AUTHOR: Christian Becke 
# DATE: 2013-12-15

from pymol import cmd

def mpng_3d (pfx, width, height, start=1, end=-1):
	"""mpng_3d , , , [start=1], [end=-1]
render stereoscopic frames sized  x  pixels.
Files will be named _%04d.png.
Render frames  to  (default: all frames)"""
	width = int (width)
	height = int (height)
	start = int (start)
	end = int (end)
	if end == -1:
		end = cmd.count_frames ()
	outframe = start
	stereo_angle = cmd.get ('stereo_angle')
	for frame in xrange (start, end + 1):
		print "Rendering frame %d (%d of %d)" % (
			frame, frame - start + 1, end - start + 1)

		cmd.frame (frame)
		
		# left frame
		if cmd.get ("ray_trace_frames"):
			cmd.ray (width, height, angle=stereo_angle, quiet=1)
		cmd.png ("%s_%04d.png" % (pfx, outfr

[PyMOL] cartoon_transparency issue

2014-08-25 Thread Markus Heller
Hello,

Attached is a crop of a figure create with the latest PyMOL under Windoze 7 64 
bit.  When setting cartoon_transparency, I get a gray band on the cartoons.  
Where does this come from, and how do I get rid of it?

Thanks and Cheers
Markus

Here's my code:

# reset everything
delete all

# white background
bg_color white

# show valences
set valence, 1

# show valences inside rings, 0 = centered, 1 = inside set valence_mode, 1

# antialias
set antialias = 1

# load the PDB files

load ... example PDB

# turn on grid mode and set it up
set grid_mode, 1

# hide everything
hide everything

# select protein
select prot, polymer

# color everything
color white

# show cartoon ribbon for protein
show cartoon

# don't show backbone for cartoons
set cartoon_side_chain_helper, on

# keep standard helix, strand, loop representations # other options: cartoon 
loop, cartoon rect, # cartoon oval , cartoon tube cartoon automatic

# color cartoon white and set transparency set cartoon_color, white set 
cartoon_transparency, 0.7

# select residue of interest
select roi, resi 27+31+34+37+41

# show sticks for ROIs
show sticks, roi

# hide non-polar H
hide (h. and (e. c extend 1))

# color ROIs
color atomic
color yellow, (name C* and roi)

# show H-bonds between sidechains and assign to slots dist Hbo-sc, resi 37, 
resi 41, mode = 2

# hide alls labels
hide labels

# color all dashes green
set dash_color, green

# deselect all to avoid little pink squares deselect


-- 
Markus Heller, Ph.D.
NMR Scientist
CDRD - The Centre for Drug Research and Development
2405 Wesbrook Mall, Fourth Floor | Vancouver, BC  V6T 1Z3 | Main: (604) 827-1147
Direct: (604) 827-1122 | F: (604) 827-1299 | E: mhel...@cdrd.ca | www.cdrd.ca






Follow us:    

This email and any files transmitted with it are confidential and intended 
solely for the addressee.  If you are not the named addressee you should not 
disseminate, distribute, copy, or alter this email.



--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] drawing arows, CONE cgo doesn't work.

2014-08-25 Thread Andreas Warnecke
Hej,

if you simply copy-paste the wiki entry into PyMOL you will get the error.
This code is intended to be run as a block (e.g. from script) and creates
e.g. problems with indentation, or other errors.
A simple solution would be to wrap the commands to a block using "python"
and "python end".

Either you include them in what copy paste (the whole shabang):

python

# axes.pyfrom pymol.cgo import *from pymol import cmdfrom pymol.vfont
import plain
 # create the axes object, draw axes with cylinders coloured red,
green,#blue for X, Y and Z

obj = [
   CYLINDER, 0., 0., 0., 10., 0., 0., 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,
   CYLINDER, 0., 0., 0., 0., 10., 0., 0.2, 1.0, 1.0, 1.0, 0., 1.0, 0.,
   CYLINDER, 0., 0., 0., 0., 0., 10., 0.2, 1.0, 1.0, 1.0, 0., 0.0, 1.0,
   ]
 # add labels to axes object (requires pymol version 0.8 or greater, I# believe

cyl_text(obj,plain,[-5.,-5.,-1],'Origin',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])
cyl_text(obj,plain,[10.,0.,0.],'X',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])
cyl_text(obj,plain,[0.,10.,0.],'Y',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])
cyl_text(obj,plain,[0.,0.,10.],'Z',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])
 # then we load it into PyMOLcmd.load_cgo(obj,'axes')

python end


OR you can enter the lines/ copy paste sequentially.

If you are interested in arrows/ cones, have a look at the cgo_arrow script:
http://www.pymolwiki.org/index.php/Cgo_arrow

Hope this helps.

Cheers,

Andreas


On Mon, Aug 25, 2014 at 5:48 PM, vincent Chaptal 
wrote:

>  Hi,
>
> I'm trying to draw arrows in Pymol 1.7.2 for mac, "à la
> http://www.pymolwiki.org/index.php/Axes "
>
> When I run the script for the Axes_with_nice_cones, I have the error
> message:
> File "/Applications/MacPyMOL.app/pymol/modules/pymol/parser.py", line 464,
> in parse
> exec(layer.com2+"\n",self.pymol_names,self.pymol_names)
>   File "", line 1
> CONE, 0.0, 0.0,   l, 0.0, 0.0, h+l, d, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0,
> 1.0, 1.0, 1.0]
>
> ^
> SyntaxError: invalid syntax
>
>
> As a workaround, I tried to use the cylinder syntax (bellow, by replacing
> CYLINDER by CONE), pymol loads the object but doesn't draw anything.
> cmd.load_cgo( [ CONE, x0, y0, z0, x1, y1, z1, radius, r1, g1, b1, r1, g1,
> b1 ], "cone_a" )
>
>
> Can someone tell me what is going on and how I can draw a cgo CONE in
> pymol? It looks very nice.
>
> Thank you
> Vincent
>
>
>
>
> --
>
> Vincent Chaptal, PhD
>
> Institut de Biologie et Chimie des Protéines
>
> Drug-resistance modulation and mechanism Laboratory
>
> 7 passage du Vercors
>
> 69007 LYON
>
> FRANCE
>
> +33 4 37 65 29 01
>
> http://www.ibcp.fr
>
>
>
>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] pymol 3D movies

2014-08-25 Thread Marcelo Marcet
Hi Christian,

Thank you for taking the time to reply to this question and for offering your 
help. I am also interested in quad-buffered stereo play back. Would you be able 
to provide us with a bit more methodology information? It sounds like you have 
a script that helps you save the side-by-side images and later you use a 
software called ffmpeg to render the movie. Is this correct?

Thanks so much,
Marcelo


On Aug 25, 2014, at 10:38 AM, Christian Becke 
mailto:christian.be...@fu-berlin.de>> wrote:

Hi Xevi,

I have prepared side-by-side 3D movies that I could play on a 3D TV using pymol 
and ffmpeg. I ray-traced the movie, one frame for each eye, and used ffmpeg to 
compile the resulting png files to an h264 movie file. With side-by-side 
stereo, you of course lose resolution, but ffmpeg can also do 
alternating-frames stereo with no loss in resolution. If you find a movie 
player that renders such a movie using your quad-buffer capable hardware, you 
should be all set. Let me know if you want to try this, I would be happy to 
share my scripts.

Christian


Am Montag, den 25.08.2014, 09:35 -0400 schrieb Xavier Fradera:

Hi,

I am looking into making a quad-buffered stereo 3D movie. Is this possible with 
mpeg or any other format ? I know I could just play the movie from pymol, but 
would like to be able to save as mpeg with x-ray traced images for higher 
quality.

Xevi

--
Xavier Fradera

--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/

___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Cartoon_oval_length

2014-08-25 Thread Hena Dutta
Hi,
Many thanks for all your inputs. I was not being able to modify the cartoon
oval length, as I was in fancy helix mode. Fancy helix needs to be
unselected before to modify the oval length or width.
Thanks,
Hena


On Mon, Aug 25, 2014 at 1:32 PM, Thomas Holder <
thomas.hol...@schrodinger.com> wrote:

> nice! Glad you could solve it.
>
> Could you write a brief reply to the pymol-users list so that other people
> know that the issue is solved and the problem was cartoon_fancy_helices?
> Thanks!
>
> --Thomas
>
> On 25 Aug 2014, at 13:27, Hena Dutta  wrote:
>
> > Hi Thomas,
> > Thanks a lot. Problem solved. I had selected fancy helix. That was the
> reason.
> >
> > Regards,
> > Hena
> >
> >
> > On Mon, Aug 25, 2014 at 1:20 PM, Thomas Holder <
> thomas.hol...@schrodinger.com> wrote:
> > does it work if you start from scratch? Example:
> >
> > PyMOL> fetch 1ubq, async=0
> > PyMOL> as cartoon
> > PyMOL> set cartoon_oval_length, .6
> >
> > Also, make sure you are actually rendering oval helices and not fancy
> helices, see http://pymolwiki.org/index.php/Cartoon_Helix_Settings
> >
> > --Thomas
> >
> > On 25 Aug 2014, at 13:16, Hena Dutta  wrote:
> >
> > > Hi Thomas,
> > > I tried unset command and then tried #2 again. Still it did not work.
> I am sorry, there must be something wrong at my end. I just don't know what
> could be.
> > >
> > >
> > > On Mon, Aug 25, 2014 at 12:40 PM, Thomas Holder <
> thomas.hol...@schrodinger.com> wrote:
> > > Hi Hena and Adam,
> > >
> > > the shortcut to solve what Adam is describing in #2 would be:
> > >
> > > PyMOL> unset cartoon_oval_length, *
> > >
> > > That clears the setting on all objects and falls back to using the
> global setting.
> > >
> > > Cheers,
> > >   Thomas
> > >
> > > On 25 Aug 2014, at 12:26, H. Adam Steinberg <
> h.adam.steinb...@gmail.com> wrote:
> > > > 1) Go to Settings in the menus and choose Edit all.
> > > >
> > > > In the new window that appears type “oval" in the search box.
> > > >
> > > > Double click the default value for cartoon_oval_length, enter your
> chosen preference, and hit the enter key on your keyboard.
> > > >
> > > > You should see your change.
> > > >
> > > > 2) If this doesn’t work, you see no change, then the selection for
> your chosen object has been directly modified by script.
> > > >
> > > > You can check this by opening a new PyMOL session and open any pdb
> file. Apply the default changes to cartoon oval length as described above
> in #1, if it works, then #2 needs to be changed.
> > > >
> > > > To change #2, choose the exact same selection that you (or someone
> else) modified in the past and set the cartoon oval length for just that
> selection… set cartoon_oval_length, 0.6, "your selection or pdb name".
> > > >
> > > > On Aug 25, 2014, at 9:57 AM, Hena Dutta  wrote:
> > > >
> > > >> Hi,
> > > >> I am trying to change the cartoon oval length using the command
> > > >> set cartoon_oval_length, 0.6
> > > >> But, it is not showing any change. I am using pymol 1.6.0.0 in
> windows 8.1
> > > >> Can someone help me?
> > > >> Regards,
> > > >> Hena
>
> --
> Thomas Holder
> PyMOL Developer
> Schrödinger, Inc.
>
>
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Cartoon_oval_length

2014-08-25 Thread Christopher Colbert
Remember this setting will only change the appearance of alpha helices.  If you 
are trying to change the appearance of sheets and loops you need to use their 
settings.

Cheers,

Chris

--
Christopher L. Colbert, Ph.D.
Assistant Professor
Department of Chemistry and Biochemistry
North Dakota State University
P.O. Box 6050 Dept. 2710
Fargo, ND 58108-6050


From: "H. Adam Steinberg" 
mailto:h.adam.steinb...@gmail.com>>
Date: Monday, August 25, 2014 11:26 AM
To: Hena Dutta mailto:hdutt...@gmail.com>>
Cc: 
"mailto:pymol-users@lists.sourceforge.net>>" 
mailto:pymol-users@lists.sourceforge.net>>
Subject: Re: [PyMOL] Cartoon_oval_length

1) Go to Settings in the menus and choose Edit all.

In the new window that appears type "oval" in the search box.

Double click the default value for cartoon_oval_length, enter your chosen 
preference, and hit the enter key on your keyboard.

You should see your change.

2) If this doesn't work, you see no change, then the selection for your chosen 
object has been directly modified by script.

You can check this by opening a new PyMOL session and open any pdb file. Apply 
the default changes to cartoon oval length as described above in #1, if it 
works, then #2 needs to be changed.

To change #2, choose the exact same selection that you (or someone else) 
modified in the past and set the cartoon oval length for just that selection... 
set cartoon_oval_length, 0.6, "your selection or pdb name".

On Aug 25, 2014, at 9:57 AM, Hena Dutta 
mailto:hdutt...@gmail.com>> wrote:

Hi,
I am trying to change the cartoon oval length using the command
set cartoon_oval_length, 0.6
But, it is not showing any change. I am using pymol 1.6.0.0 in windows 8.1
Can someone help me?
Regards,
Hena
--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

H. Adam Steinberg
7904 Bowman Rd
Lodi, WI 53555
608/592-2366

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Cartoon_oval_length

2014-08-25 Thread H. Adam Steinberg
Oh thank you, you just made my life so much easier! I always get to work on 
PyMOL sessions after people have tweaked them into oblivion...


On Aug 25, 2014, at 11:40 AM, Thomas Holder  
wrote:

> Hi Hena and Adam,
> 
> the shortcut to solve what Adam is describing in #2 would be:
> 
> PyMOL> unset cartoon_oval_length, *
> 
> That clears the setting on all objects and falls back to using the global 
> setting.
> 
> Cheers,
>  Thomas
> 
> On 25 Aug 2014, at 12:26, H. Adam Steinberg  
> wrote:
>> 1) Go to Settings in the menus and choose Edit all.
>> 
>> In the new window that appears type “oval" in the search box.
>> 
>> Double click the default value for cartoon_oval_length, enter your chosen 
>> preference, and hit the enter key on your keyboard.
>> 
>> You should see your change.
>> 
>> 2) If this doesn’t work, you see no change, then the selection for your 
>> chosen object has been directly modified by script. 
>> 
>> You can check this by opening a new PyMOL session and open any pdb file. 
>> Apply the default changes to cartoon oval length as described above in #1, 
>> if it works, then #2 needs to be changed.
>> 
>> To change #2, choose the exact same selection that you (or someone else) 
>> modified in the past and set the cartoon oval length for just that 
>> selection… set cartoon_oval_length, 0.6, "your selection or pdb name".
>> 
>> On Aug 25, 2014, at 9:57 AM, Hena Dutta  wrote:
>> 
>>> Hi, 
>>> I am trying to change the cartoon oval length using the command
>>> set cartoon_oval_length, 0.6
>>> But, it is not showing any change. I am using pymol 1.6.0.0 in windows 8.1
>>> Can someone help me?
>>> Regards,
>>> Hena
> 
> -- 
> Thomas Holder
> PyMOL Developer
> Schrödinger, Inc.

H. Adam Steinberg
7904 Bowman Rd
Lodi, WI 53555
608/592-2366


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


Re: [PyMOL] Cartoon_oval_length

2014-08-25 Thread Thomas Holder
Hi Hena and Adam,

the shortcut to solve what Adam is describing in #2 would be:

PyMOL> unset cartoon_oval_length, *

That clears the setting on all objects and falls back to using the global 
setting.

Cheers,
  Thomas

On 25 Aug 2014, at 12:26, H. Adam Steinberg  wrote:
> 1) Go to Settings in the menus and choose Edit all.
> 
> In the new window that appears type “oval" in the search box.
> 
> Double click the default value for cartoon_oval_length, enter your chosen 
> preference, and hit the enter key on your keyboard.
> 
> You should see your change.
> 
> 2) If this doesn’t work, you see no change, then the selection for your 
> chosen object has been directly modified by script. 
> 
> You can check this by opening a new PyMOL session and open any pdb file. 
> Apply the default changes to cartoon oval length as described above in #1, if 
> it works, then #2 needs to be changed.
> 
> To change #2, choose the exact same selection that you (or someone else) 
> modified in the past and set the cartoon oval length for just that selection… 
> set cartoon_oval_length, 0.6, "your selection or pdb name".
> 
> On Aug 25, 2014, at 9:57 AM, Hena Dutta  wrote:
> 
>> Hi, 
>> I am trying to change the cartoon oval length using the command
>> set cartoon_oval_length, 0.6
>> But, it is not showing any change. I am using pymol 1.6.0.0 in windows 8.1
>> Can someone help me?
>> Regards,
>> Hena

-- 
Thomas Holder
PyMOL Developer
Schrödinger, Inc.


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


Re: [PyMOL] pymol 3D movies

2014-08-25 Thread Christian Becke
Hi Xevi,

I have prepared side-by-side 3D movies that I could play on a 3D TV 
using pymol and ffmpeg. I ray-traced the movie, one frame for each 
eye, and used ffmpeg to compile the resulting png files to an h264 
movie file. With side-by-side stereo, you of course lose resolution, 
but ffmpeg can also do alternating-frames stereo with no loss in 
resolution. If you find a movie player that renders such a movie using 
your quad-buffer capable hardware, you should be all set. Let me know 
if you want to try this, I would be happy to share my scripts.

Christian

Am Montag, den 25.08.2014, 09:35 -0400 schrieb Xavier Fradera:
> Hi,
>  
> I am looking into making a quad-buffered stereo 3D movie. Is this 

> possible with mpeg or any other format ? I know I could just play 

> the movie from pymol, but would like to be able to save as mpeg with 

> x-ray traced images for higher quality.
>  
> Xevi
>  
> --
> Xavier Fradera
> --

> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: 

> http://www.mail-archive.com/pymol-users@lists.sourceforge.net--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Cartoon_oval_length

2014-08-25 Thread H. Adam Steinberg
1) Go to Settings in the menus and choose Edit all.

In the new window that appears type “oval" in the search box.

Double click the default value for cartoon_oval_length, enter your chosen 
preference, and hit the enter key on your keyboard.

You should see your change.

2) If this doesn’t work, you see no change, then the selection for your chosen 
object has been directly modified by script. 

You can check this by opening a new PyMOL session and open any pdb file. Apply 
the default changes to cartoon oval length as described above in #1, if it 
works, then #2 needs to be changed.

To change #2, choose the exact same selection that you (or someone else) 
modified in the past and set the cartoon oval length for just that selection… 
set cartoon_oval_length, 0.6, "your selection or pdb name".

On Aug 25, 2014, at 9:57 AM, Hena Dutta  wrote:

> Hi, 
> I am trying to change the cartoon oval length using the command
> set cartoon_oval_length, 0.6
> But, it is not showing any change. I am using pymol 1.6.0.0 in windows 8.1
> Can someone help me?
> Regards,
> Hena
> --
> Slashdot TV.  
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/___
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

H. Adam Steinberg
7904 Bowman Rd
Lodi, WI 53555
608/592-2366

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

[PyMOL] drawing arows, CONE cgo doesn't work.

2014-08-25 Thread vincent Chaptal

Hi,

I'm trying to draw arrows in Pymol 1.7.2 for mac, "à la 
http://www.pymolwiki.org/index.php/Axes "


When I run the script for the Axes_with_nice_cones, I have the error 
message:
File "/Applications/MacPyMOL.app/pymol/modules/pymol/parser.py", line 
464, in parse

exec(layer.com2+"\n",self.pymol_names,self.pymol_names)
  File "", line 1
CONE, 0.0, 0.0,   l, 0.0, 0.0, h+l, d, 0.0, 0.0, 0.0, 1.0, 0.0, 
0.0, 1.0, 1.0, 1.0]

^
SyntaxError: invalid syntax


As a workaround, I tried to use the cylinder syntax (bellow, by 
replacing CYLINDER by CONE), pymol loads the object but doesn't draw 
anything.
cmd.load_cgo( [ CONE, x0, y0, z0, x1, y1, z1, radius, r1, g1, b1, r1, 
g1, b1 ], "cone_a" )



Can someone tell me what is going on and how I can draw a cgo CONE in 
pymol? It looks very nice.


Thank you
Vincent




--

Vincent Chaptal, PhD

Institut de Biologie et Chimie des Protéines

Drug-resistance modulation and mechanism Laboratory

7 passage du Vercors

69007 LYON

FRANCE

+33 4 37 65 29 01

http://www.ibcp.fr


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

[PyMOL] Cartoon_oval_length

2014-08-25 Thread Hena Dutta
Hi,
I am trying to change the cartoon oval length using the command
set cartoon_oval_length, 0.6
But, it is not showing any change. I am using pymol 1.6.0.0 in windows 8.1
Can someone help me?
Regards,
Hena
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

[PyMOL] pymol 3D movies

2014-08-25 Thread Xavier Fradera
Hi,

I am looking into making a quad-buffered stereo 3D movie. Is this possible
with mpeg or any other format ? I know I could just play the movie from
pymol, but would like to be able to save as mpeg with x-ray traced images
for higher quality.

Xevi

-- 
Xavier Fradera
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net