I love the script, but the callback seems to be causing Pymol to be at 100% CPU 
continuously. Any workarounds?
On Dec 20, 2011, at 3:08 PM, Jason Vertrees wrote:

> Francis,
> 
> Done: http://pymolwiki.org/index.php/Mark_center.
> 
> Cheers,
> 
> -- Jason
> 
> 
> On Tue, Dec 20, 2011 at 3:53 PM, Francis E Reyes
> <francis.re...@colorado.edu> wrote:
>> +1... Would be a goodie to throw on the wiki.
>> 
>> Thanks!
>> 
>> F
>> 
>> On Dec 20, 2011, at 1:47 PM, Jason Vertrees wrote:
>> 
>>> python
>>> 
>>> from pymol import cmd
>>> 
>>> def crosshair_put_center():
>>>    t = cmd.get_position()
>>>    m = [1, 0, 0, t[0], 0, 1, 0, t[1], 0, 0, 1, t[2], 0, 0, 0, 1]
>>>    cmd.set_object_ttt('crosshair', m, homogenous=1)
>>> 
>>> cmd.load_callback(crosshair_put_center, '_crosshair_cb')
>>> 
>>> cmd.pseudoatom('crosshair', pos=(0,0,0))
>>> cmd.show_as('nonbonded', 'crosshair')
>>> 
>>> python end
>> 
>> 
>> 
>> ---------------------------------------------
>> Francis E. Reyes M.Sc.
>> 215 UCB
>> University of Colorado at Boulder
>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> -- 
> Jason Vertrees, PhD
> PyMOL Product Manager
> Schrodinger, LLC
> 
> (e) jason.vertr...@schrodinger.com
> (o) +1 (603) 374-7120
> 
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create 
> new or port existing apps to sell to consumers worldwide. Explore the 
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to