Le 07/03/12 14:58, Bernhard Lohkamp a écrit :
> dots takes 5 arguments now. It used to be 4. The documentation is not
> updated as yet (since this is in pre-release). So you need another
> text/string type of argument to name you dot object:
> 
> int dots(int imol,
>          const char *atom_selection_str,
>          const char *dots_object_name,
>          float dot_density, float sphere_size_scale);
> 
> B
> 

Great.
Thank you Bernhard!


-- Miguel

>> Using Coot for OSX (stand-alone version 0.7-pre-1 revision 4040)
>>
>> I see in the Docs (biop site):
>>
>>> 4.17 Atomic Dots
>>>
>>> You can draw dots round arbitrary atom selections
>>>
>>> (dots imol atom-selection dot-density radius) The function returns a
>>> handle.
>>
>>
>> So, from the Scripting window I run:
>>
>> (dots 0 "//A/228/CA" 1 1)
>>
>> which results in:
>>
>> Backtrace:
>> In current input:
>>     6: 0* [dots 0 "//A/228/CA" 1 1]
>>
>> <unnamed port>:6:1: In procedure dots in expression (dots 0 "//A/228/CA"
>> ...):
>> <unnamed port>:6:1: Wrong number of arguments to dots
>> ABORT: (wrong-number-of-args)
>>
>> Hmmm, I gave 4 arguments as said in the documentation.
>>
>> But I can still use dots from the Extensions, so I investigate in the
>> extensions.scm code and I see:
>>
>>>           submenu-representation "Dotted Surface..."
>>>           (lambda ()
>>>             (generic-chooser-and-entry "Surface for molecule"
>>>                                        "Atom Selection:"
>>>                                        "//A/1-2"
>>>                                        (lambda (imol text)
>>>                                          (let ((dots-handle (dots
>>> imol text text 1 1)))
>>>                                            (format #t "dots handle:
>>> ~s~%" dots-handle))))))
>>
>> Now, I see two "text" arguments there, making a total of 5 arguments. I
>> guess one corresponds to the atom-selection as stated in the
>> documentation. But the second one?
>>
>> Any ideas?
>>
>> Best,
>>
>>
> 
> 


-- 
Miguel

Architecture et Fonction des Macromolécules Biologiques (UMR7257)
CNRS, Aix-Marseille Université
Case 932, 163 Avenue de Luminy, 13288 Marseille cedex 9, France
Tel: +33(0) 491 82 55 93
Fax: +33(0) 491 26 67 20
mailto:miguel.ortiz-lombar...@afmb.univ-mrs.fr
http://w2.afmb.univ-mrs.fr/Miguel-Ortiz-Lombardia

Reply via email to