Thank you Tom,

 

Everything is working now perfectly.

 

Best,

Artur

 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Artur BIELA, PhD

Scientific Assistant

Bionanoscience and Biochemistry Laboratory

Malopolska Centre of Biotechnology

Jagiellonian University
7A, Gronostajowa Street
30-387 Krakow

Poland

 

Department of Cell Biology and Imaging

Institute of Zoology and Biomedical Research

Jagiellonian University

Gronostajowa 9

30-387 Krakow

 

artur.biela@uj.edu.pl

http://www.mcb.uj.edu.pl/en_GB/heddle-laboratory

publons

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

 

Od: Tom Goddard
Wysłano: czwartek, 5 września 2019 19:55
Do: Artur Biela
DW: chimera-users@cgl.ucsf.edu
Temat: Re: [Chimera-users] cage builder

 

Hi Artur,

  You can modify one line of the Cage Builder python code in your copy of Chimera to create buttons to make polygons with more sides.  The file to modify is

chimera/share/CageBuilder/gui.py

or on Mac

Chimera.app/Contents/Resources/share/CageBuilder/gui.py

and the line to modify is

    apb = [('%d' % n , lambda n=n: self.attach_polygons(n)) for n in range(3,8)]

which you could change replacing 8 by 16 to get

    apb = [('%d' % n , lambda n=n: self.attach_polygons(n)) for n in range(3,16)]

which would create buttons in the Cage Builder panel for polygons with 3 through 15 sides.  After you edit the file with a text editor (keep the indentation of the line the same as this is important in Python), then restart Chimera and it will have the new buttons.

Tom


On Sep 5, 2019, at 1:10 AM, Artur Biela <artur.biela@uj.edu.pl> wrote:

Hi all,
 
I would like to build a cage model using cage builder, but the problem is that I need to use different polygons than available in the pop-up window of cage builder.
My question is: is there any option to use for example octagons, decagons or even more-gons?
 
Thank in advance
Artur
 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Artur BIELA, PhD
Scientific Assistant
Bionanoscience and Biochemistry Laboratory
Malopolska Centre of Biotechnology
Jagiellonian University
7A, Gronostajowa Street
30-387 Krakow
Poland
 
Department of Cell Biology and Imaging
Institute of Zoology and Biomedical Research
Jagiellonian University
Gronostajowa 9
30-387 Krakow
 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
_______________________________________________
Chimera-users mailing list: Chimera-users@cgl.ucsf.edu
Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users