VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Tue Aug 06 2013 - 07:33:01 CDT
- Next message: John Stone: "Re: extracting grid points from an isosurface"
- Previous message: Mayne, Christopher G: "Re: Loading new molecule without changing view?"
- In reply to: Marc van der Kamp: "Re: Loading new molecule without changing view?"
- Next in thread: Mayne, Christopher G: "Re: Loading new molecule without changing view?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
On Tue, Aug 6, 2013 at 1:24 PM, Marc van der Kamp
<marcvanderkamp_at_gmail.com> wrote:
> Thanks for the reply Axel, and for pointing out some options.
> I probably won't go the scripting/coding route - I was mostly looking
> for this option to save some time (e.g. for making figures).
> It is a pity there isn't a (built-in) easier option to do this, as it
> is essentially asking the program *not* to do something... Perhaps it
> could be added as an option to the "mol load" command?
the reload.tcl example is an autoloaded script. that is as good as a
new command. the problem with making this an extension to the mol
command is that it is not always obvious what the reference would be.
with making this a new command, you have all the flexibility and
convenience you want without having to overload the VMD API with
complex features. quite a bit of VMD commands are done like that and
people customize VMD for their needs this way.
also, please don't use "mol load". this is obsolescent and you should
use "mol new" and "mol addfile" instead.
axel.
>
> Thanks,
> Marc
>
> On 6 August 2013 12:09, Axel Kohlmeyer <akohlmey_at_gmail.com> wrote:
>> On Tue, Aug 6, 2013 at 11:49 AM, Marc van der Kamp
>> <marcvanderkamp_at_gmail.com> wrote:
>>> Dear all,
>>>
>>> I would like to load a new molecule but keep the exact same view
>>> (orientation, zoom level etc.) as present in the Display before
>>> loading a new molecule.
>>> In other words, I would like to turn-off the auto-'focussing' mode.
>>>
>>> Is this possible, and if so, how?
>>> (I couldn't find an answer to this in the manual or other online resources)
>>
>> it should be possible with some scripting. you would need to store
>> away the various viewpoint parameters and then reapply them after
>> loading the molecule. please have a look at the "reload" function in
>> this (somewhat outdated) tutorial.
>>
>> https://sites.google.com/site/akohlmey/redirect/cpmd-vmd.pdf?attredirects=0&d=1
>>
>> this may be something that you could try to adapt for your purpose.
>>
>> you may also want to look into the VMD script code produced by the
>> save state functionality, which has a similar component.
>>
>> axel.
>>
>>> Many thanks,
>>> Marc
>>
>>
>>
>> --
>> Dr. Axel Kohlmeyer akohlmey_at_gmail.com http://goo.gl/1wk0
>> International Centre for Theoretical Physics, Trieste. Italy.
-- Dr. Axel Kohlmeyer akohlmey_at_gmail.com http://goo.gl/1wk0 International Centre for Theoretical Physics, Trieste. Italy.
- Next message: John Stone: "Re: extracting grid points from an isosurface"
- Previous message: Mayne, Christopher G: "Re: Loading new molecule without changing view?"
- In reply to: Marc van der Kamp: "Re: Loading new molecule without changing view?"
- Next in thread: Mayne, Christopher G: "Re: Loading new molecule without changing view?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]