def epmv_start(soft, gui=False, debug=0): """ Initialise a embeded PMV cession in the provided hostApplication. @type soft: string @param soft: name of the host application @type debug: int @param debug: debug mode, print verbose @rtype: epmvAdaptor @return: the embeded PMV object which consist in the adaptor, the molecular viewer and the helper. #whatabout tk and Qt? """ import upy if soft is None: soft = upy.retrieveHost() if soft == 'blender24': from ePMV.blender.v24.blenderAdaptor import blenderAdaptor as adaptor elif soft == 'blender25': from ePMV.blender.v25.blenderAdaptor import blenderAdaptor as adaptor elif soft == 'c4d': from ePMV.cinema4d.c4dAdaptor import c4dAdaptor as adaptor elif soft == 'maya': from ePMV.autodeskmaya.mayaAdaptor import mayaAdaptor as adaptor elif soft == '3dsmax': from ePMV.autodesk3dsmax.maxAdaptor import maxAdaptor as adaptor elif soft == 'softimage': from ePMV.softimage.softimageAdaptor import softimageAdaptor as adaptor else: from ePMV.epmvAdaptor import epmvAdaptor as adaptor # elif soft == 'chimera': # from ePMV.Chimera.chimeraAdaptor import chimeraAdaptor as adaptor # elif soft == 'houdini': # from ePMV.houdini.houdiniAdaptor import houdiniAdaptor as adaptor # you can add here additional soft if an adaptor and an helper is available # use the following syntaxe, replace template by the additional hostApp # elif soft == 'template': # from Pmv.hostappInterface.Template.chimeraAdaptor import templateAdaptor as adaptor #Start ePMV # print ("start",adaptor,"soft",soft) return adaptor(gui=gui, debug=debug)
def epmv_start(soft, gui=False, debug=0): """ Initialise a embeded PMV cession in the provided hostApplication. @type soft: string @param soft: name of the host application @type debug: int @param debug: debug mode, print verbose @rtype: epmvAdaptor @return: the embeded PMV object which consist in the adaptor, the molecular viewer and the helper. #whatabout tk and Qt? """ import upy if soft is None: soft = upy.retrieveHost() if soft == "blender24": from ePMV.blender.v24.blenderAdaptor import blenderAdaptor as adaptor elif soft == "blender25": from ePMV.blender.v25.blenderAdaptor import blenderAdaptor as adaptor elif soft == "c4d": from ePMV.cinema4d.c4dAdaptor import c4dAdaptor as adaptor elif soft == "maya": from ePMV.autodeskmaya.mayaAdaptor import mayaAdaptor as adaptor elif soft == "3dsmax": from ePMV.autodesk3dsmax.maxAdaptor import maxAdaptor as adaptor elif soft == "softimage": from ePMV.softimage.softimageAdaptor import softimageAdaptor as adaptor else: from ePMV.epmvAdaptor import epmvAdaptor as adaptor # elif soft == 'chimera': # from ePMV.Chimera.chimeraAdaptor import chimeraAdaptor as adaptor # elif soft == 'houdini': # from ePMV.houdini.houdiniAdaptor import houdiniAdaptor as adaptor # you can add here additional soft if an adaptor and an helper is available # use the following syntaxe, replace template by the additional hostApp # elif soft == 'template': # from Pmv.hostappInterface.Template.chimeraAdaptor import templateAdaptor as adaptor # Start ePMV # print ("start",adaptor,"soft",soft) return adaptor(gui=gui, debug=debug)
""" Copyright (C) <2010> Autin L. This file ePMV_git/demo/surface_per_chain.py is part of ePMV. ePMV is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ePMV is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with ePMV. If not, see <http://www.gnu.org/licenses/gpl-3.0.html>. """ #ms/cms per chain #self or epmv.mv is the molecular viewer #epmv is the adaptor #epmv.helper is the host helper function #epmv.gui is the ui interface #self.Mols is the array of currently loaded molecule from 0 to n #you can get a molecule from her name #special Fix for Blender. host = "" try: print(epmv) host = epmv.helper.host except: #what the current host import upy
This file ePMV_git/demo/surface_per_chain.py is part of ePMV. ePMV is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ePMV is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with ePMV. If not, see <http://www.gnu.org/licenses/gpl-3.0.html>. """ #ms/cms per chain #self or epmv.mv is the molecular viewer #epmv is the adaptor #epmv.helper is the host helper function #epmv.gui is the ui interface #self.Mols is the array of currently loaded molecule from 0 to n #you can get a molecule from her name #special Fix for Blender. host="" try : print (epmv) host = epmv.helper.host except : #what the current host import upy host = upy.retrieveHost()