I mean, no one uses the script editor.
On Thu, Mar 22, 2012 at 7:25 PM, Robert Hanson wrote:
> just ignore those. They are in the form of comments; for syncing with the
> script editor and for command history - (which no one uses)
>
>
> 2012/3/22 Adrià Cereto Massagué
>
>> It works!
>>
>>
just ignore those. They are in the form of comments; for syncing with the
script editor and for command history - (which no one uses)
2012/3/22 Adrià Cereto Massagué
> It works!
>
> I had to use 'set syncscript on' instead of 'sync script'.
>
> But when I enter any command from the Jmol con
> Thank you! I'll try the JmolStatusListener approach.
>
> I think it would be helpful for others to have this on the wiki.
Hello, Adrià
You are welcome to sign up and contribute to the wiki.
I would suggest one of the Developers sections.
-
It works!
I had to use 'set syncscript on' instead of 'sync script'.
But when I enter any command from the Jmol console, in data[1] I have:
mycommand## EDITOR_IGNORE ## #NOSYNC;
What does that '## EDITOR_IGNORE ## #NOSYNC;' thing mean? Am I doing
something wrong?
Here's my code: https://gist.gi
Thank you! I'll try the JmolStatusListener approach.
I think it would be helpful for others to have this on the wiki.
Regards,
Adrià
El 22 de març de 2012 3:39, Robert Hanson ha escrit:
> Ah, I see. Let's work on this.
>
> That's very interesting, and it's easy. Absolutely no hacking of
Ah, I see. Let's work on this.
That's very interesting, and it's easy. Absolutely no hacking of Jmol
code. It's all ready for you. A couple of options:
1) create a JmolScript function with the command name. That's your starting
point. it doesn't matter what this function does. maybe nothin
El 21 de març de 2012 19:31, Robert Hanson ha escrit:
> That's Jmol script, not JavaScript. Yes, essentially exactly like pyMol.
> You can write any macro you want.
>
I didn't explain well.
I can implement some of that functionality using JmolScript, but not
everything I want.
I would like to ma
That's Jmol script, not JavaScript. Yes, essentially exactly like pyMol.
You can write any macro you want.
2012/3/21 Adrià Cereto Massagué
>
>
> El 21 de març de 2012 1:45, Robert Hanson ha escrit:
>
> Custom commands can be simply set up by defining a function with that
>> command name. is th
El 21 de març de 2012 1:45, Robert Hanson ha escrit:
> Custom commands can be simply set up by defining a function with that
> command name. is that what you mean -- sort of a macro?
>
>
>
> function colorMeBlue(atoms) {
>
> color @atoms blue
>
> }
>
>
>
> colorMeBlue {helix}
>
>
>
>
Thank you.
Custom commands can be simply set up by defining a function with that
command name. is that what you mean -- sort of a macro?
function colorMeBlue(atoms) {
color @atoms blue
}
colorMeBlue {helix}
2012/3/20 Adrià Cereto Massagué
> Hello,
>
> I am new to Jmol, and I am developing an
Hello,
I am new to Jmol, and I am developing an application which relies on it
(the Integration.java example has been very useful)
I want to have some custom commands available from the scripting console.
Is there an easy way for doing so?
I have tried extending AppConsole and overriding the ent
11 matches
Mail list logo