Exemplo n.º 1
0
Arquivo: test.py Projeto: stormic/upy
Created on Wed Jul  6 12:37:23 2011

@author: -
"""

#----------------------------------------------------------
# File layout.py
#----------------------------------------------------------
import bpy

import pyubic
pyubic.setUIClass()#pref="qt"

#should have a template ?
from pyubic import uiadaptor
helperClass = pyubic.getHelperClass()

class cubi(uiadaptor):
    def __init__(self,**kw):
        uiadaptor.__init__(self,kw)
        self.initWidget()
        self.setupLayout()
#        self.y = 200 #top line
        self.title = "cubi"
        #we need the helper
        self.helper = helperClass(kw)
        self.dock = False
        #self.widgetGap = 0
        
    #theses two function are for c4d
    def CreateLayout(self):
Exemplo n.º 2
0
Arquivo: test.py Projeto: corredD/upy
Created on Sat Feb 26 11:39:17 2011

@author: -
"""
MGL_ROOT="/Library/MGLTools/1.5.6.up"
import sys,os
import math
#pyubic have to be in the pythonpath, if not add it
pyubicpath = "/Library/MGLTools/1.5.6.up/MGLToolsPckgs"
sys.path.append("/Library/MGLTools/dpdtPckgs")
sys.path.append(pyubicpath)
import pyubic

from pyubic.examples import simpleButtons
mg = simpleButtons.myGui()
helper = pyubic.getHelperClass()()
verts = [
                (0, -1 / math.sqrt(3),0),
                (0.5, 1 / (2 * math.sqrt(3)), 0),
                (-0.5, 1 / (2 * math.sqrt(3)), 0),
                (0, 0, math.sqrt(2 / 3)),
                ]
#faces = [[0, 1, 2], [0, 1, 3], [1, 2, 3], [2, 0, 3]]   
hou.helper = helper
from mglutil.util.recentFiles import RecentFiles
from Pmv import moleculeViewer
mv = moleculeViewer.MoleculeViewer(logMode = 'overwrite', customizer=None,master=None,title='pmv', 
                    withShell= 0,verbose=False, gui = False)
hou.mv = mv
rcFile = mv.rcFolder
if rcFile:
Exemplo n.º 3
0
Created on Sat Feb 26 11:39:17 2011

@author: -
"""
MGL_ROOT = "/Library/MGLTools/1.5.6.up"
import sys, os
import math
#pyubic have to be in the pythonpath, if not add it
pyubicpath = "/Library/MGLTools/1.5.6.up/MGLToolsPckgs"
sys.path.append("/Library/MGLTools/dpdtPckgs")
sys.path.append(pyubicpath)
import pyubic

from pyubic.examples import simpleButtons
mg = simpleButtons.myGui()
helper = pyubic.getHelperClass()()
verts = [
    (0, -1 / math.sqrt(3), 0),
    (0.5, 1 / (2 * math.sqrt(3)), 0),
    (-0.5, 1 / (2 * math.sqrt(3)), 0),
    (0, 0, math.sqrt(2 / 3)),
]
#faces = [[0, 1, 2], [0, 1, 3], [1, 2, 3], [2, 0, 3]]
hou.helper = helper
from mglutil.util.recentFiles import RecentFiles
from Pmv import moleculeViewer
mv = moleculeViewer.MoleculeViewer(logMode='overwrite',
                                   customizer=None,
                                   master=None,
                                   title='pmv',
                                   withShell=0,