- [Feature] Add orthographic camera mode
- [Feature] Serialization: export the current UnityMol state to a JSON file (selections, representations, annotations) !
- [VR|Feature] LeapMotion support re-added
- [Feature] Tour feature: long click on a selection to add it to the tour animation
- [Feature] Call python functions each frame of a trajectory:
last().NewFrameDeleg += myPythonfunc
- [Feature] Energy plots for IMD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nanome | |
from nanome.util import Color, Logs, Vector3 | |
from nanome.api import shapes | |
import numpy as np | |
import open3d as o3d | |
class OBJLoader(nanome.PluginInstance): | |
def start(self): | |
path = "mypath.obj" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
[RequireComponent(typeof(MeshFilter))] | |
public class NormalsVisualizer : MonoBehaviour { | |
private Mesh mesh; | |
private string curName = ""; | |
private Mesh debugMesh; | |
private GameObject curGo; |
# Fetch a remote molecular file (pdb or mmcif zipped)
# forceStructureType (-1 = auto-detect / 0 = standard / 1 = CG / 2 = OPEP / 3 = HIRERNA)
UnityMolStructure fetch(string PDBId, bool usemmCIF = True, bool readHetm = True, bool forceDSSP = False, bool showDefaultRep = True, bool center = True, bool modelsAsTraj = True, int forceStructureType = -1, bool bioAssembly = False)
# Load a local molecular file (pdb/mmcif/gro/mol2/sdf/xyz formats)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Unity.Collections; | |
using Unity.Jobs; | |
using Unity.Mathematics; | |
using Unity.Collections.LowLevel.Unsafe; | |
using Unity.Burst; | |
public class WireframeGenerator { |