Thank you Thomas, translate and rotate works great, but I'm not sure what
set_object_ttt function does.
I'm also looking for a function that can set absolute coordinates of my cgo
cone, not relative to current position like translate/rotate. Is there such
a function?
2013/8/12 Thomas Holder <thomas.hol...@schrodinger.com>
> Hi Pawel,
>
> > Currently I'm working on some plugin for PyMOL and I need your help.
> > I need to draw an object (CGO) and create some function that will move
> > this object or simply change its coordinates.
> > I've done my job with the first part, that is drawing a sphere on a
> > screen using
> > cmd.load_cgo(data, 'name')
> > function, but how can I change its coordinates?
>
> You can use translate and rotate with the object argument.
>
> PyMOL> translate [10,0,0], object=yourcgo
> PyMOL> rotate x, 20, object=yourcgo
>
> You can also use cmd.set_object_ttt, see the third example here:
> http://pymolwiki.org/index.php/Axes
>
> > My second question is about the meaning of a parameters for CONE CGO, in
> > some examples (http://www.pymolwiki.org/index.php/Axes) CONE gets about
> > 16 params, but I didn't found any description of those.
>
> There is no proper documentation for those. Did you have a look at
> pymol/examples/devel/cgo_axes.py, which has comments for all the CONE
> parameters?
>
>
> https://sourceforge.net/p/pymol/code/4038/tree/trunk/pymol/examples/devel/cgo_axes.py
>
> Cheers,
> Thomas
>
> --
> Thomas Holder
> PyMOL Developer
> Schrödinger Contractor
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
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