resetLastRes.setLength(0);
resetLastRes.append("select " + pdbResNum);
+ eval.append(":");
+ resetLastRes.append(":");
if (!chain.equals(" "))
{
- eval.append(":" + chain);
- resetLastRes.append(":" + chain);
+ eval.append(chain);
+ resetLastRes.append(chain);
}
- eval.append(";wireframe 100;" + eval.toString() + ".*;");
+ eval.append(";wireframe 100;" + eval.toString() + " and not hetero;");
resetLastRes.append(";wireframe 0;" + resetLastRes.toString()
- + ".*;spacefill 0;");
+ + " and not hetero; spacefill 0;");
eval.append("spacefill 200;select none");
resetLastRes.setLength(0);
resetLastRes.append("select " + pdbResNum);
+ eval.append(":");
+ resetLastRes.append(":");
if (!chain.equals(" "))
{
- eval.append(":" + chain);
- resetLastRes.append(":" + chain);
+ eval.append(chain);
+ resetLastRes.append(chain);
}
- eval.append(";wireframe 100;" + eval.toString() + ".*;");
+ eval.append(";wireframe 100;" + eval.toString() + " and not hetero;"); // ".*;");
resetLastRes.append(";wireframe 0;" + resetLastRes.toString()
- + ".*;spacefill 0;");
+ //+ ".*;spacefill 0;");
+ + " and not hetero;spacefill 0;");
eval.append("spacefill 200;select none");
-
+// System.out.println("jmol:\n"+eval+"\n");
viewer.evalStringQuiet(eval.toString());
}