#time to start epmv 1279092203.67 #time to start epmv 1279092405.16 plugin=False re={} if not plugin : #define the python path import math MGL_ROOT="/Library/MGLTools/1.5.6.csv/"#os.environ['MGL_ROOT'] sys.path[0]=(MGL_ROOT+'lib/python2.5/site-packages') sys.path.append(MGL_ROOT+'lib/python2.5/site-packages/PIL') sys.path.append(MGL_ROOT+'/MGLToolsPckgs') #start epmv t1=time() from Pmv.hostappInterface.epmvAdaptor import epmv_start epmv = epmv_start(soft,debug=1) print "time to start epmv ",time()-1 else : #get epmv and mv (adaptor and molecular viewer) if sotf == 'c4d': import c4d epmv = c4d.mv.values()[0]#[dname] import Pmv dataDir = Pmv.__path__[0]+'/Tests/Data/' self = epmv.mv from Pmv import hostappInterface plgDir = hostappInterface.__path__[0] from Pmv.hostappInterface import comput_util as util epmv.doCamera = False epmv.doLight = False
#MGL_ROOT="/Library/MGLTools/1.5.6.csv/" #sys.path[-1] = '/Library/Python/2.6/site-packages/PIL' #sys.path[0]=(MGL_ROOT+'lib/python2.5/site-packages') #sys.path.append(MGL_ROOT+'lib/python2.5/') #sys.path.append(MGL_ROOT+'/MGLToolsPckgs') #sys.path.append(MGL_ROOT+'/lib/python2.5/site-packages/PIL') import c4d doc = c4d.documents.GetActiveDocument() if len(c4d.mv) != 0 : epmv = c4d.mv[doc.GetDocumentName()] else : from Pmv.hostappInterface.epmvAdaptor import epmv_start epmv = epmv_start('c4d',debug=1) c4d.mv[doc.GetDocumentName()]=epmv epmv.doCamera = False epmv.doLight = False self = epmv.mv helper = epmv.helper self.initARViewer(log=0) self.art.AR.Set(usePlus=False,useCfg=False,usePatCfg=False) self.art.set_average_mode(True) self.art.disable_magic_lenses() self.art.useScenePattern=False self.art.use_current_camera = False self.art.dual_display = False self.art.useAR = True
#MGL_ROOT="/Library/MGLTools/1.5.6.csv/" #sys.path[-1] = '/Library/Python/2.6/site-packages/PIL' #sys.path[0]=(MGL_ROOT+'lib/python2.5/site-packages') #sys.path.append(MGL_ROOT+'lib/python2.5/') #sys.path.append(MGL_ROOT+'/MGLToolsPckgs') #sys.path.append(MGL_ROOT+'/lib/python2.5/site-packages/PIL') import c4d doc = c4d.documents.GetActiveDocument() if len(c4d.mv) != 0: epmv = c4d.mv[doc.GetDocumentName()] else: from Pmv.hostappInterface.epmvAdaptor import epmv_start epmv = epmv_start('c4d', debug=1) c4d.mv[doc.GetDocumentName()] = epmv epmv.doCamera = False epmv.doLight = False self = epmv.mv helper = epmv.helper self.initARViewer(log=0) self.art.AR.Set(usePlus=False, useCfg=False, usePatCfg=False) self.art.set_average_mode(True) self.art.disable_magic_lenses() self.art.useScenePattern = False self.art.use_current_camera = False self.art.dual_display = False self.art.useAR = True
#time to start epmv 1279092203.67 #time to start epmv 1279092405.16 plugin = False re = {} if not plugin: #define the python path import math MGL_ROOT = "/Library/MGLTools/1.5.6.csv/" #os.environ['MGL_ROOT'] sys.path[0] = (MGL_ROOT + 'lib/python2.5/site-packages') sys.path.append(MGL_ROOT + 'lib/python2.5/site-packages/PIL') sys.path.append(MGL_ROOT + '/MGLToolsPckgs') #start epmv t1 = time() from Pmv.hostappInterface.epmvAdaptor import epmv_start epmv = epmv_start(soft, debug=1) print("time to start epmv ", time() - 1) else: #get epmv and mv (adaptor and molecular viewer) if sotf == 'c4d': import c4d epmv = list(c4d.mv.values())[0] #[dname] import Pmv dataDir = Pmv.__path__[0] + '/Tests/Data/' self = epmv.mv from Pmv import hostappInterface plgDir = hostappInterface.__path__[0] from Pmv.hostappInterface import comput_util as util