Is it currently supported to manipulate the Lattice/Display style (e.g. from Default to Original) for a 3D Atomistic document? If not, any workaround ideas?
Answers2
ST
ST2007-10-11
Hi Jason,
It is not supported to change the display style from Default to Original or in general to change the display of any object. This is due to MaterialsScript being a "server side" scripting language, hence commands which don't affect the server side calculation, such as the Lattice style settings are not supported.
Having said this, there are obvious exceptions to "server side" rule ie the ability to set the color, display style, and visibility of different objects. These are only supported as they are properties of the objects and are exposed through the Properties explorer.
Could you clarify what you would like to do with a script that changes the Lattice display style?
Thanks
Stephen
JD
JD2007-10-12
Hi Stephen,
The reason I ask pertains to hydrogen bonding. The IsVisible flag used for counting intra vs inter molecular bonds depends on the display style. In the case of a single polymer amorphous cell, if you use "Original" display, then you can count inter versus intra image bonds.
It is not supported to change the display style from Default to Original or in general to change the display of any object. This is due to MaterialsScript being a "server side" scripting language, hence commands which don't affect the server side calculation, such as the Lattice style settings are not supported.
Having said this, there are obvious exceptions to "server side" rule ie the ability to set the color, display style, and visibility of different objects. These are only supported as they are properties of the objects and are exposed through the Properties explorer.
Could you clarify what you would like to do with a script that changes the Lattice display style?
Thanks
Stephen
The reason I ask pertains to hydrogen bonding. The IsVisible flag used for counting intra vs inter molecular bonds depends on the display style. In the case of a single polymer amorphous cell, if you use "Original" display, then you can count inter versus intra image bonds.
/Jason