, etc.:
cmd.alter_state(..., "cmd.my_fn(...)")
Cheers,
Warren
From: Stuart Ballard [mailto:srball...@wisc.edu]
Sent: Monday, August 24, 2009 4:06 PM
To: Warren DeLano
Cc: pymol-users
Subject: Re: [PyMOL] C
Hello Warren,
When adding in the "cmd." I get these error messages:
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'sym_partner'
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute
Hello Stuart,
By default, alter_state expressions are evaluated in the "pymol"
namespace of the current PyMOL instance, not the "cmd" (pymol.cmd)
namespace. The reason why it works with 'run' is that run also executes
in "pymol" by default, and thus, includes any functions you define.
Try: