Hi Paul, Now I get closer to the final anwer! After following your steps, I get the effect I want. However, afer I "ray" the structure, a small part of the structure which I don't mean to set transparent become blur. Please see the image in the red circle in fig-3 (https://drive.google.com/file/d/1Au0LUkRKMCBCtN7XM_O0WlGKLhmtnyMV/view?usp=sharing). How does that happen and how to fix it?
Thank you again and best regards. Yeping ------------------------------------------------------------------ From:Smith, Paul <paul.sm...@kcl.ac.uk> Send Time:2018 Dec 4 (Tue) 21:00 To:孙业平 <sunyep...@aliyun.com>; pymol-users <pymol-users@lists.sourceforge.net> Subject:RE: [PyMOL] how to make selected residues blurry? Hi Yeping, To avoid this ‘breaking’ of your protein you will first need to create a copy of the entire molecule, set the transparency of the copy to your desired value, then hide the residues you want to make transparent on your original object. So, you will do something like this: # create a copy of your original object: create new_obj, <original_object> # set all residues on the copy to be transparent: set cartoon_transparency, <value>, new_obj # hide the residues you wish to be transparent on your original object: select hide, <your_selection> cartoon_skip, hide and <original_object> This should prevent the your molecule from appearing to be broken. Cheers, Paul From: sunyeping <sunyep...@aliyun.com> Sent: Tuesday, December 4, 2018 3:23:00 AM To: pymol-users; Smith, Paul Subject: Re: [PyMOL] how to make selected residues blurry? Hi, Paul, Thank you for your reply. I think the ‘set transparency’ command is on the correct direction, but there is another problem. In order to apply the ‘set transparency’, we should use "create" or "extract" command to make a new objective for the selected atoms. However, after I select the atoms that I want to make transparent, and use the command "extract": extract new_obj, sele I find the new object is broken from the rest part of the structure. And then I use the commend: set cartoon_transparency, 0.7, new_obj The breaking between the new objective (the transparent part) and the rest part become more obvious. Please see the figure at the line (https://drive.google.com/file/d/1XQqGeN7JRLfSlexk4J7ufESWhnTJM3bW/view?usp=sharing). Could you help me with the "breaking" problem? Best regards, Yeping ------------------------------------------------------------------ From:Smith, Paul <paul.sm...@kcl.ac.uk> Send Time:2018 Dec 3 (Mon) 20:38 To:孙业平 <sunyep...@aliyun.com>; pymol-users <pymol-users@lists.sourceforge.net> Subject:RE: [PyMOL] how to make selected residues blurry? Hi, The ‘set transparency’ command will set the transparency of a surface (e.g. the interface between a protein and the surrounding water). I think the command you’re after is ‘set cartoon_transparency’ (https://pymolwiki.org/index.php/Cartoon#Various_Transparency_Levels). Depending on your choice of representation, see also ‘set sphere_transparency’ and ‘set stick_transparency’. Cheers, Paul From: sunyeping via PyMOL-users Sent: 03 December 2018 03:02 To: pymol-users Subject: [PyMOL] how to make selected residues blurry? Dear all, Could you please check this figure at the following link? https://drive.google.com/file/d/1Uh9JRh7x0sjv-zGp_0ZKPc1cnWotkZA0/view?usp=sharing The structure in blue in this figure is prepared from chain A of pdb id 4gms. Some residues are highlighted and look sharp ( as indicated in the figure: 130-loop, 150-loop, 190-helix and 220-loop, and the corresponding residues are: residues 134-138, 155-163, 188-195, 221-228, respectively), while other part of the structure look blurry. I wish to repeat this visual effect but don't know how. I try to select the residues and use "set transparency" command: set transparency, 0.8, sele but it doesn't work. Could anyone help me figure it out? With sincere thanks.
_______________________________________________ PyMOL-users mailing list Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net Unsubscribe: https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe