├── .gitignore ├── README.md ├── __init__.py ├── nodeGui.py ├── src ├── __init__.py ├── airForceAttr.ui ├── basicEmSpeedAttr.ui ├── basicEmitter.ui ├── behaviorCat.ui ├── colliderUtil.ui ├── collisionEvent.ui ├── distDirAttr.ui ├── emissionAttrs.ui ├── emitterCat.ui ├── genControlAttr.ui ├── goalAttr.ui ├── gravityForce.ui ├── gui_from_designer.ui ├── icons.qrc ├── images │ ├── X.svg │ ├── attrBase.svg │ ├── attrBehavior.svg │ ├── attrConnection.svg │ ├── attrConnection_behavior.svg │ ├── attrConnection_emitter.svg │ ├── attrConnection_look.svg │ ├── attrEmitter.svg │ ├── attrLook.svg │ ├── behaviorBase.svg │ ├── behaviorInputConnection.svg │ ├── behaviorOutputConnection.svg │ ├── catAttrConnection.svg │ ├── catBase.svg │ ├── conditionBase.svg │ ├── emitterBase.svg │ ├── hugin.svg │ ├── lookBase.svg │ ├── lookInputConnection.svg │ ├── lookOutputConnection.svg │ └── objectNode.svg ├── instancer.ui ├── lifeSpanAttrs.ui ├── newtonForce.ui ├── objectUtil.ui ├── perParticleAttr.ui ├── renderAttr.ui ├── renderStats.ui ├── testWidget.ui ├── timeAttrs.ui ├── turbulenceForce.ui ├── volSpeedAttr.ui └── vortexForce.ui └── ui ├── __init__.py ├── airForceAttr.py ├── basicEmSpeedAttr.py ├── basicEmitter.py ├── behaviorCat.py ├── colliderUtil.py ├── collisionEvent.py ├── distDirAttr.py ├── emissionAttrs.py ├── emitterCat.py ├── genControlAttr.py ├── goalAttr.py ├── graphicsModule.py ├── gravityForce.py ├── gui_from_designer.py ├── icons_rc.py ├── instancer.py ├── lifeSpanAttrs.py ├── mayaNodesModule.py ├── newtonForce.py ├── nodeModule.py ├── nodeWidgetsModule.py ├── objectUtil.py ├── perParticleAttr.py ├── renderAttr.py ├── renderStats.py ├── testWidgetUI.py ├── timeAttrs.py ├── turbulenceForce.py ├── userListModule.py ├── volSpeedAttr.py └── vortexForce.py /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | *.ai 3 | 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Maya-Node-Interface # 2 | 3 | ## About ## 4 | 5 | I designed this Node-based interface as a way of learning Python and PyQt. It has been developed with Maya 2011 and only (as of now) works with Maya 2011. It's only meant to work with setting up particle systems. Some node functions aren't complete, but for the most part all of them are working. 6 | 7 | NOTE: As mentioned above, I designed this GUI to LEARN Python and PyQt. This is my first project with Python and PyQt, so if you expect to have the most efficient perfect code, you will be sorely dissapointed. But it does what I set out for it to do. Which is why it's free :-) 8 | 9 | DOUBLE NOTE: Unfortunately I don't have enough time, or frankly the willpower (as of yet), to put together a complete tutorial walk-through of how I designed this and how everything works. Maybe I eventually I will put one together. 10 | 11 | ## Requirements ## 12 | 13 | This app depends on PyQt4 installed for Maya 14 | 15 | ## Instructions ## 16 | 17 | Download the package and place the `MayaNodeInterface` directory somewhere in your Maya `PYTHONPATH` 18 | 19 | In Maya: 20 | ```python 21 | import MayaNodeInterface 22 | MayaNodeInterface.show() 23 | ``` 24 | 25 | ## Video Sample ## 26 | 27 | Here's a little sample of what the code actually does. 28 | 29 | https://vimeo.com/40380911 30 | 31 | ## Contributors ## 32 | 33 | A **HUGE THANKS** to Justin Israel [(justinfx)](https://github.com/justinfx) and all of his help with this project. It wouldn't have been possible (no, literally) without him. 34 | -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | import nodeGui 2 | from nodeGui import show 3 | 4 | __all__ = ['show', 'nodeGui'] -------------------------------------------------------------------------------- /nodeGui.py: -------------------------------------------------------------------------------- 1 | import os, sip, sys 2 | 3 | from PyQt4.QtGui import * 4 | from PyQt4.QtCore import * 5 | 6 | from .ui.gui_from_designer import Ui_MainWindow 7 | from .ui import graphicsModule, mayaNodesModule, userListModule, icons_rc 8 | 9 | app = None 10 | 11 | class MainWindow(QMainWindow, Ui_MainWindow): 12 | 13 | def __init__(self, parent = None): 14 | super(MainWindow, self).__init__(parent) 15 | self.setupUi(self) 16 | 17 | # Setting up variables and functions 18 | self._path = os.getcwd() 19 | 20 | # Get the user defined Maya Nodes 21 | mayaNodesModule.getMayaNodes() 22 | 23 | # Scene view 24 | self.scene = graphicsModule.SceneView() 25 | self.nodeDropGraphicsView.setScene(self.scene) 26 | self.nodeDropGraphicsView.setSceneRect(0, 0, 630, 555) 27 | 28 | # Graphics View 29 | self.nodeDropGraphicsView.wheelEvent = self.graphicsView_wheelEvent 30 | self.nodeDropGraphicsView.resizeEvent = self.graphicsView_resizeEvent 31 | self.nodeDropGraphicsView.setBackgroundBrush(QBrush(QColor(60, 60, 60, 255), Qt.SolidPattern)) 32 | 33 | # Tabs 34 | self.addTabs() 35 | 36 | # Connections 37 | self.makeConnections() 38 | 39 | def changeDescription(self, listItem): 40 | self.descriptionLabel.setText(listItem.description) 41 | 42 | def addTabs(self): 43 | 44 | self.emitterList = userListModule.ListBaseClass() 45 | self.emitterList.listName = "emitterList" 46 | self.emitterList.populateListWidget(mayaNodesModule.MayaNodes) 47 | listIcon = QIcon(":/attrEmitter.svg") 48 | self.nodesWindow.insertTab(0, self.emitterList, listIcon, "Particle Emitter") 49 | 50 | self.behaviorList = userListModule.ListBaseClass() 51 | self.behaviorList.listName = "behaviorList" 52 | self.behaviorList.populateListWidget(mayaNodesModule.MayaNodes) 53 | listIcon = QIcon(":/attrBehavior.svg") 54 | self.nodesWindow.insertTab(1, self.behaviorList, listIcon, "Particle Behavior/Movement") 55 | 56 | self.lookList = userListModule.ListBaseClass() 57 | self.lookList.listName = "lookList" 58 | self.lookList.populateListWidget(mayaNodesModule.MayaNodes) 59 | listIcon = QIcon(":/attrLook.svg") 60 | self.nodesWindow.insertTab(2, self.lookList, listIcon, "Particle Look") 61 | 62 | self.lookList = userListModule.ListBaseClass() 63 | self.lookList.listName = "utilitiesList" 64 | self.lookList.populateListWidget(mayaNodesModule.MayaNodes) 65 | listIcon = QIcon(":/objectNode.svg") 66 | self.nodesWindow.insertTab(3, self.lookList, listIcon, "Utilities") 67 | 68 | self.nodesWindow.setCurrentIndex(0) 69 | 70 | def setWidgetMenu(self, item): 71 | self.nodeMenuArea.takeWidget() 72 | self.nodeMenuArea.setWidget(item.getWidgetMenu()) 73 | self.nodeOptionsWindow.setTitle(item.displayText.toPlainText()) 74 | 75 | def graphicsView_wheelEvent(self, event): 76 | factor = 1.41 ** ((event.delta()*.5) / 240.0) 77 | self.nodeDropGraphicsView.scale(factor, factor) 78 | 79 | def graphicsView_resizeEvent(self, event): 80 | self.scene.setSceneRect(0, 0, self.nodeDropGraphicsView.width(), self.nodeDropGraphicsView.height()) 81 | 82 | def makeConnections(self): 83 | self.emitterList.itemClicked.connect(self.changeDescription) 84 | self.behaviorList.itemClicked.connect(self.changeDescription) 85 | self.lookList.itemClicked.connect(self.changeDescription) 86 | self.scene.categoryItemClicked.connect(self.setWidgetMenu) 87 | 88 | 89 | def show(): 90 | global app 91 | 92 | # Use a shared instance of QApplication 93 | import maya.OpenMayaUI as mui 94 | app = QApplication.instance() 95 | 96 | # Get a pointer to the maya main window 97 | ptr = mui.MQtUtil.mainWindow() 98 | # Use sip to wrap the pointer into a QObject 99 | win = sip.wrapinstance(long(ptr), QObject) 100 | form = MainWindow(win) 101 | form.show() 102 | 103 | ''' 104 | Run App 105 | ''' 106 | 107 | if __name__ == "__main__": 108 | print "Standalone" 109 | app = QApplication(sys.argv) 110 | form = MainWindow() 111 | form.show() 112 | app.exec_() 113 | 114 | 115 | -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'Tim' 2 | -------------------------------------------------------------------------------- /src/airForceAttr.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | airForceAttr 4 | 5 | 6 | 7 | 0 8 | 0 9 | 251 10 | 291 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Magnitude 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 0 29 | 0 30 | 31 | 32 | 33 | -999999999.000000000000000 34 | 35 | 36 | 999999999.000000000000000 37 | 38 | 39 | 4.000000000000000 40 | 41 | 42 | 43 | 44 | 45 | 46 | Attenuation 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 0 55 | 0 56 | 57 | 58 | 59 | -999999999.000000000000000 60 | 61 | 62 | 999999999.000000000000000 63 | 64 | 65 | 1.000000000000000 66 | 67 | 68 | 69 | 70 | 71 | 72 | Direction: 73 | 74 | 75 | 76 | 77 | 78 | 79 | Qt::Horizontal 80 | 81 | 82 | 83 | 40 84 | 20 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | Speed 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 0 101 | 0 102 | 103 | 104 | 105 | -999999999.000000000000000 106 | 107 | 108 | 999999999.000000000000000 109 | 110 | 111 | 1.000000000000000 112 | 113 | 114 | 115 | 116 | 117 | 118 | Inherit Velocity 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 0 127 | 0 128 | 129 | 130 | 131 | 1.000000000000000 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 0 140 | 0 141 | 142 | 143 | 144 | Inherit Rotation 145 | 146 | 147 | false 148 | 149 | 150 | 151 | 152 | 153 | 154 | Qt::Vertical 155 | 156 | 157 | 158 | 20 159 | 40 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 0 169 | 0 170 | 171 | 172 | 173 | 1.000000000000000 174 | 175 | 176 | 0.010000000000000 177 | 178 | 179 | 1.000000000000000 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 0 188 | 0 189 | 190 | 191 | 192 | 1.000000000000000 193 | 194 | 195 | 0.010000000000000 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 0 204 | 0 205 | 206 | 207 | 208 | 1.000000000000000 209 | 210 | 211 | 0.010000000000000 212 | 213 | 214 | 0.000000000000000 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | -------------------------------------------------------------------------------- /src/basicEmSpeedAttr.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | basicEmSpeedAttr 4 | 5 | 6 | 7 | 0 8 | 0 9 | 305 10 | 201 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Speed 21 | 22 | 23 | 24 | 25 | 26 | 27 | 3 28 | 29 | 30 | -1000000000.000000000000000 31 | 32 | 33 | 1000000000.000000000000000 34 | 35 | 36 | 1.000000000000000 37 | 38 | 39 | 40 | 41 | 42 | 43 | Speed Random 44 | 45 | 46 | 47 | 48 | 49 | 50 | 3 51 | 52 | 53 | -1000000000.000000000000000 54 | 55 | 56 | 1000000000.000000000000000 57 | 58 | 59 | 0.000000000000000 60 | 61 | 62 | 63 | 64 | 65 | 66 | Qt::Horizontal 67 | 68 | 69 | 70 | 40 71 | 20 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | Tangent Speed 80 | 81 | 82 | 83 | 84 | 85 | 86 | Qt::Vertical 87 | 88 | 89 | 90 | 20 91 | 40 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 3 100 | 101 | 102 | -1000000000.000000000000000 103 | 104 | 105 | 1000000000.000000000000000 106 | 107 | 108 | 0.000000000000000 109 | 110 | 111 | 112 | 113 | 114 | 115 | 3 116 | 117 | 118 | -1000000000.000000000000000 119 | 120 | 121 | 1000000000.000000000000000 122 | 123 | 124 | 1.000000000000000 125 | 126 | 127 | 128 | 129 | 130 | 131 | Normal Speed 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | -------------------------------------------------------------------------------- /src/basicEmitter.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | basicEmitterWidget 4 | 5 | 6 | 7 | 0 8 | 0 9 | 303 10 | 337 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Emitter Type: 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | Directional 29 | 30 | 31 | 32 | 33 | Omni 34 | 35 | 36 | 37 | 38 | Surface 39 | 40 | 41 | 42 | 43 | Curve 44 | 45 | 46 | 47 | 48 | Volume 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | Rate (Particles/Sec): 57 | 58 | 59 | 60 | 61 | 62 | 63 | 2 64 | 65 | 66 | 1000000000.000000000000000 67 | 68 | 69 | 100.000000000000000 70 | 71 | 72 | 73 | 74 | 75 | 76 | Scale Rate by Speed 77 | 78 | 79 | 80 | 81 | 82 | 83 | Scale Rate By Object Size 84 | 85 | 86 | 87 | 88 | 89 | 90 | 0 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | QFrame::Panel 99 | 100 | 101 | QFrame::Raised 102 | 103 | 104 | Volume Emitter Attributes 105 | 106 | 107 | 108 | 109 | 110 | 111 | Qt::Horizontal 112 | 113 | 114 | 115 | 116 | 117 | 118 | Volume Shape 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | Cube 127 | 128 | 129 | 130 | 131 | Sphere 132 | 133 | 134 | 135 | 136 | Cylinder 137 | 138 | 139 | 140 | 141 | Cone 142 | 143 | 144 | 145 | 146 | Torus 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | Volume Offset 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | Volume Sweep 165 | 166 | 167 | 168 | 169 | 170 | 171 | 3 172 | 173 | 174 | 360.000000000000000 175 | 176 | 177 | 178 | 179 | 180 | 181 | Section Radius 182 | 183 | 184 | 185 | 186 | 187 | 188 | 3 189 | 190 | 191 | 1.000000000000000 192 | 193 | 194 | 0.100000000000000 195 | 196 | 197 | 198 | 199 | 200 | 201 | Qt::Vertical 202 | 203 | 204 | 205 | 20 206 | 40 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | Qt::Horizontal 215 | 216 | 217 | 218 | 40 219 | 20 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | Qt::Horizontal 232 | 233 | 234 | 235 | 40 236 | 20 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | Qt::Vertical 245 | 246 | 247 | 248 | 20 249 | 40 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | -------------------------------------------------------------------------------- /src/behaviorCat.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | behaviorCat 4 | 5 | 6 | 7 | 0 8 | 0 9 | 336 10 | 344 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | ParticleShape name: 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Qt::Horizontal 31 | 32 | 33 | 34 | 40 35 | 20 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | Qt::Vertical 44 | 45 | 46 | 47 | 20 48 | 40 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/colliderUtil.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | colliderUtil 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Bounciness 21 | 22 | 23 | 24 | 25 | 26 | 27 | 3 28 | 29 | 30 | 1.000000000000000 31 | 32 | 33 | 0.010000000000000 34 | 35 | 36 | 1.000000000000000 37 | 38 | 39 | 40 | 41 | 42 | 43 | Friction 44 | 45 | 46 | 47 | 48 | 49 | 50 | 3 51 | 52 | 53 | 1.000000000000000 54 | 55 | 56 | 0.010000000000000 57 | 58 | 59 | 0.000000000000000 60 | 61 | 62 | 63 | 64 | 65 | 66 | Offset 67 | 68 | 69 | 70 | 71 | 72 | 73 | 3 74 | 75 | 76 | 0.001000000000000 77 | 78 | 79 | 1.000000000000000 80 | 81 | 82 | 0.010000000000000 83 | 84 | 85 | 0.010000000000000 86 | 87 | 88 | 89 | 90 | 91 | 92 | Qt::Horizontal 93 | 94 | 95 | 96 | 40 97 | 20 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | Qt::Vertical 106 | 107 | 108 | 109 | 20 110 | 40 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /src/distDirAttr.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | distDirAttr 4 | 5 | 6 | 7 | 0 8 | 0 9 | 305 10 | 201 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Min Distance 21 | 22 | 23 | 24 | 25 | 26 | 27 | 3 28 | 29 | 30 | -1000000000.000000000000000 31 | 32 | 33 | 1000000000.000000000000000 34 | 35 | 36 | 0.000000000000000 37 | 38 | 39 | 40 | 41 | 42 | 43 | Max Distance 44 | 45 | 46 | 47 | 48 | 49 | 50 | 3 51 | 52 | 53 | -1000000000.000000000000000 54 | 55 | 56 | 1000000000.000000000000000 57 | 58 | 59 | 0.000000000000000 60 | 61 | 62 | 63 | 64 | 65 | 66 | Direction X 67 | 68 | 69 | 70 | 71 | 72 | 73 | 3 74 | 75 | 76 | -1000000000.000000000000000 77 | 78 | 79 | 1000000000.000000000000000 80 | 81 | 82 | 1.000000000000000 83 | 84 | 85 | 86 | 87 | 88 | 89 | Direction Y 90 | 91 | 92 | 93 | 94 | 95 | 96 | 3 97 | 98 | 99 | -1000000000.000000000000000 100 | 101 | 102 | 1000000000.000000000000000 103 | 104 | 105 | 0.000000000000000 106 | 107 | 108 | 109 | 110 | 111 | 112 | Direction Z 113 | 114 | 115 | 116 | 117 | 118 | 119 | 3 120 | 121 | 122 | -1000000000.000000000000000 123 | 124 | 125 | 1000000000.000000000000000 126 | 127 | 128 | 0.000000000000000 129 | 130 | 131 | 132 | 133 | 134 | 135 | Spread 136 | 137 | 138 | 139 | 140 | 141 | 142 | 3 143 | 144 | 145 | 0.000000000000000 146 | 147 | 148 | 1.000000000000000 149 | 150 | 151 | 0.010000000000000 152 | 153 | 154 | 0.000000000000000 155 | 156 | 157 | 158 | 159 | 160 | 161 | Qt::Horizontal 162 | 163 | 164 | 165 | 40 166 | 20 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | Qt::Vertical 175 | 176 | 177 | 178 | 20 179 | 40 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | -------------------------------------------------------------------------------- /src/emissionAttrs.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | emissionAttrWidget 4 | 5 | 6 | 7 | 0 8 | 0 9 | 270 10 | 224 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Max Count 21 | 22 | 23 | 24 | 25 | 26 | 27 | -1 28 | 29 | 30 | 100000000 31 | 32 | 33 | -1 34 | 35 | 36 | 37 | 38 | 39 | 40 | Level of Detail 41 | 42 | 43 | 44 | 45 | 46 | 47 | 4 48 | 49 | 50 | 1.000000000000000 51 | 52 | 53 | 0.010000000000000 54 | 55 | 56 | 1.000000000000000 57 | 58 | 59 | 60 | 61 | 62 | 63 | Inherit Factor 64 | 65 | 66 | 67 | 68 | 69 | 70 | 4 71 | 72 | 73 | 1.000000000000000 74 | 75 | 76 | 0.010000000000000 77 | 78 | 79 | 0.000000000000000 80 | 81 | 82 | 83 | 84 | 85 | 86 | Emission In World 87 | 88 | 89 | true 90 | 91 | 92 | 93 | 94 | 95 | 96 | Die on Emission Volume Exit 97 | 98 | 99 | 100 | 101 | 102 | 103 | Qt::Vertical 104 | 105 | 106 | 107 | 20 108 | 40 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | Qt::Horizontal 117 | 118 | 119 | 120 | 40 121 | 20 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | -------------------------------------------------------------------------------- /src/emitterCat.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | emitterCat 4 | 5 | 6 | 7 | 0 8 | 0 9 | 206 10 | 270 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Emitter name: 21 | 22 | 23 | 24 | 25 | 26 | 27 | Translate: 28 | 29 | 30 | 31 | 32 | 33 | 34 | Rotate: 35 | 36 | 37 | 38 | 39 | 40 | 41 | Qt::Horizontal 42 | 43 | 44 | 45 | 40 46 | 20 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | Qt::Vertical 55 | 56 | 57 | 58 | 20 59 | 40 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 0 69 | 0 70 | 71 | 72 | 73 | 74 | 0 75 | 0 76 | 77 | 78 | 79 | 0.0 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 0 88 | 0 89 | 90 | 91 | 92 | 0.0 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 0 101 | 0 102 | 103 | 104 | 105 | 0.0 106 | 107 | 108 | 109 | 110 | 111 | 112 | 0.0 113 | 114 | 115 | 116 | 117 | 118 | 119 | 0.0 120 | 121 | 122 | 123 | 124 | 125 | 126 | 0.0 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | -------------------------------------------------------------------------------- /src/genControlAttr.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | genControlAttr 4 | 5 | 6 | 7 | 0 8 | 0 9 | 251 10 | 300 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Is Dynamic 21 | 22 | 23 | true 24 | 25 | 26 | 27 | 28 | 29 | 30 | Dynamics Weight 31 | 32 | 33 | 34 | 35 | 36 | 37 | 3 38 | 39 | 40 | 1.000000000000000 41 | 42 | 43 | 0.010000000000000 44 | 45 | 46 | 1.000000000000000 47 | 48 | 49 | 50 | 51 | 52 | 53 | Conserve 54 | 55 | 56 | 57 | 58 | 59 | 60 | 3 61 | 62 | 63 | 1.000000000000000 64 | 65 | 66 | 0.010000000000000 67 | 68 | 69 | 1.000000000000000 70 | 71 | 72 | 73 | 74 | 75 | 76 | Forces in World 77 | 78 | 79 | true 80 | 81 | 82 | 83 | 84 | 85 | 86 | Count 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | Qt::Horizontal 97 | 98 | 99 | 100 | 40 101 | 20 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | Qt::Vertical 110 | 111 | 112 | 113 | 20 114 | 40 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /src/goalAttr.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | goalAttr 4 | 5 | 6 | 7 | 0 8 | 0 9 | 290 10 | 362 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Goal Smoothness 21 | 22 | 23 | 24 | 25 | 26 | 27 | 3 28 | 29 | 30 | 999999999.000000000000000 31 | 32 | 33 | 3.000000000000000 34 | 35 | 36 | 37 | 38 | 39 | 40 | Goal Weight 41 | 42 | 43 | 44 | 45 | 46 | 47 | 3 48 | 49 | 50 | 1.000000000000000 51 | 52 | 53 | 0.010000000000000 54 | 55 | 56 | 0.500000000000000 57 | 58 | 59 | 60 | 61 | 62 | 63 | Qt::Horizontal 64 | 65 | 66 | 67 | 40 68 | 20 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | Qt::Vertical 77 | 78 | 79 | 80 | 20 81 | 40 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /src/gravityForce.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | gravityForce 4 | 5 | 6 | 7 | 0 8 | 0 9 | 221 10 | 210 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Magnitude 21 | 22 | 23 | 24 | 25 | 26 | 27 | Attenuation 28 | 29 | 30 | 31 | 32 | 33 | 34 | Direction: 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 0 43 | 0 44 | 45 | 46 | 47 | -999999999.000000000000000 48 | 49 | 50 | 999999999.000000000000000 51 | 52 | 53 | 0.010000000000000 54 | 55 | 56 | 0.000000000000000 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 0 65 | 0 66 | 67 | 68 | 69 | -999999999.000000000000000 70 | 71 | 72 | 999999999.000000000000000 73 | 74 | 75 | 0.010000000000000 76 | 77 | 78 | -1.000000000000000 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 0 87 | 0 88 | 89 | 90 | 91 | -999999999.000000000000000 92 | 93 | 94 | 999999999.000000000000000 95 | 96 | 97 | 0.010000000000000 98 | 99 | 100 | 0.000000000000000 101 | 102 | 103 | 104 | 105 | 106 | 107 | Qt::Horizontal 108 | 109 | 110 | 111 | 40 112 | 20 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | Qt::Vertical 121 | 122 | 123 | 124 | 20 125 | 40 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 0 135 | 0 136 | 137 | 138 | 139 | -999999999.000000000000000 140 | 141 | 142 | 999999999.000000000000000 143 | 144 | 145 | 9.800000000000001 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 0 154 | 0 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | -------------------------------------------------------------------------------- /src/gui_from_designer.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | MainWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 859 10 | 846 11 | 12 | 13 | 14 | MainWindow 15 | 16 | 17 | 18 | :/images/brasero.svg:/images/brasero.svg 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 1 27 | 1 28 | 29 | 30 | 31 | 32 | 700 33 | 700 34 | 35 | 36 | 37 | Qt::Horizontal 38 | 39 | 40 | false 41 | 42 | 43 | 44 | Qt::Vertical 45 | 46 | 47 | true 48 | 49 | 50 | false 51 | 52 | 53 | 54 | 55 | 0 56 | 2 57 | 58 | 59 | 60 | 61 | 0 62 | 0 63 | 64 | 65 | 66 | QPainter::Antialiasing|QPainter::TextAntialiasing 67 | 68 | 69 | QGraphicsView::RubberBandDrag 70 | 71 | 72 | QGraphicsView::NoAnchor 73 | 74 | 75 | 76 | 77 | 78 | 0 79 | 0 80 | 81 | 82 | 83 | 84 | 450 85 | 209 86 | 87 | 88 | 89 | 0 90 | 91 | 92 | true 93 | 94 | 95 | 96 | Conditional Statements 97 | 98 | 99 | 100 | 101 | 102 | true 103 | 104 | 105 | QAbstractItemView::DragDrop 106 | 107 | 108 | true 109 | 110 | 111 | QListView::SinglePass 112 | 113 | 114 | 115 | 100 116 | 20 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | Qt::Vertical 128 | 129 | 130 | false 131 | 132 | 133 | 134 | 135 | 1 136 | 1 137 | 138 | 139 | 140 | 141 | 225 142 | 200 143 | 144 | 145 | 146 | Node Name 147 | 148 | 149 | 150 | 151 | 152 | QFrame::NoFrame 153 | 154 | 155 | true 156 | 157 | 158 | Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop 159 | 160 | 161 | 162 | 163 | 0 164 | 0 165 | 205 166 | 511 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 225 179 | 235 180 | 181 | 182 | 183 | Description 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop 193 | 194 | 195 | true 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 0 210 | 0 211 | 859 212 | 22 213 | 214 | 215 | 216 | 217 | File 218 | 219 | 220 | 221 | 222 | Edit 223 | 224 | 225 | 226 | 227 | Help 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | -------------------------------------------------------------------------------- /src/icons.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/attrBase.svg 4 | images/attrBehavior.svg 5 | images/attrConnection.svg 6 | images/attrEmitter.svg 7 | images/attrLook.svg 8 | images/behaviorBase.svg 9 | images/behaviorInputConnection.svg 10 | images/behaviorOutputConnection.svg 11 | images/catAttrConnection.svg 12 | images/catBase.svg 13 | images/conditionBase.svg 14 | images/emitterBase.svg 15 | images/hugin.svg 16 | images/lookBase.svg 17 | images/lookInputConnection.svg 18 | images/lookOutputConnection.svg 19 | images/objectNode.svg 20 | images/X.svg 21 | 22 | -------------------------------------------------------------------------------- /src/images/hugin.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 13 | 16 | 19 | 22 | 23 | 26 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /src/images/lookInputConnection.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 31 | 32 | 33 | 34 | 35 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 92 | 93 | 94 | 95 | 96 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /src/instancer.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | instancer 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 494 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Rotation Angle Units 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | Degrees 29 | 30 | 31 | 32 | 33 | Radians 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | Level Of Detail 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | Geometry 50 | 51 | 52 | 53 | 54 | BoundingBoxes 55 | 56 | 57 | 58 | 59 | BoundingBox 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | Cycle 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | None 76 | 77 | 78 | 79 | 80 | Sequential 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | Cycle Step Unit 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | Frames 97 | 98 | 99 | 100 | 101 | Seconds 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | Cycle Step 110 | 111 | 112 | 113 | 114 | 115 | 116 | 3 117 | 118 | 119 | 1.000000000000000 120 | 121 | 122 | 1000000000.000000000000000 123 | 124 | 125 | 1.000000000000000 126 | 127 | 128 | 129 | 130 | 131 | 132 | Qt::Horizontal 133 | 134 | 135 | 136 | 40 137 | 20 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | Instanced Objects: 146 | 147 | 148 | 149 | 150 | 151 | 152 | QFrame::Box 153 | 154 | 155 | QFrame::Sunken 156 | 157 | 158 | true 159 | 160 | 161 | 162 | 163 | 164 | 165 | Instancer Name: 166 | 167 | 168 | 169 | 170 | 171 | 172 | true 173 | 174 | 175 | 176 | 177 | 178 | 179 | Qt::Vertical 180 | 181 | 182 | 183 | 20 184 | 40 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | -------------------------------------------------------------------------------- /src/lifeSpanAttrs.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | lifespanAttrWidget 4 | 5 | 6 | 7 | 0 8 | 0 9 | 270 10 | 224 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Lifespan Mode 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | Live Forever 29 | 30 | 31 | 32 | 33 | Constant 34 | 35 | 36 | 37 | 38 | Random Range 39 | 40 | 41 | 42 | 43 | lifespanPP only 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | Lifespan 52 | 53 | 54 | 55 | 56 | 57 | 58 | 3 59 | 60 | 61 | 1000000.000000000000000 62 | 63 | 64 | 1.000000000000000 65 | 66 | 67 | 68 | 69 | 70 | 71 | Lifespan Random 72 | 73 | 74 | 75 | 76 | 77 | 78 | 3 79 | 80 | 81 | 1000000.000000000000000 82 | 83 | 84 | 0.000000000000000 85 | 86 | 87 | 88 | 89 | 90 | 91 | General Seed 92 | 93 | 94 | 95 | 96 | 97 | 98 | 3 99 | 100 | 101 | 1000000.000000000000000 102 | 103 | 104 | 0.000000000000000 105 | 106 | 107 | 108 | 109 | 110 | 111 | Qt::Horizontal 112 | 113 | 114 | 115 | 40 116 | 20 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | Qt::Vertical 125 | 126 | 127 | 128 | 20 129 | 40 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | -------------------------------------------------------------------------------- /src/newtonForce.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | newtonForce 4 | 5 | 6 | 7 | 0 8 | 0 9 | 234 10 | 181 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Magnitude 21 | 22 | 23 | 24 | 25 | 26 | 27 | -999999999.000000000000000 28 | 29 | 30 | 999999999.000000000000000 31 | 32 | 33 | 5.000000000000000 34 | 35 | 36 | 37 | 38 | 39 | 40 | Attenuation 41 | 42 | 43 | 44 | 45 | 46 | 47 | -999999999.000000000000000 48 | 49 | 50 | 999999999.000000000000000 51 | 52 | 53 | 1.000000000000000 54 | 55 | 56 | 57 | 58 | 59 | 60 | Min Distance 61 | 62 | 63 | 64 | 65 | 66 | 67 | -999999999.000000000000000 68 | 69 | 70 | 999999999.000000000000000 71 | 72 | 73 | 0.200000000000000 74 | 75 | 76 | 77 | 78 | 79 | 80 | Qt::Horizontal 81 | 82 | 83 | 84 | 40 85 | 20 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | Qt::Vertical 94 | 95 | 96 | 97 | 20 98 | 40 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /src/objectUtil.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | objectUtil 4 | 5 | 6 | 7 | 0 8 | 0 9 | 186 10 | 298 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Object Name: 21 | 22 | 23 | 24 | 25 | 26 | 27 | Translate: 28 | 29 | 30 | 31 | 32 | 33 | 34 | Rotate: 35 | 36 | 37 | 38 | 39 | 40 | 41 | Scale: 42 | 43 | 44 | 45 | 46 | 47 | 48 | Qt::Horizontal 49 | 50 | 51 | 52 | 40 53 | 20 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | Qt::Vertical 62 | 63 | 64 | 65 | 20 66 | 40 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | Pick Object 75 | 76 | 77 | true 78 | 79 | 80 | false 81 | 82 | 83 | 84 | 85 | 86 | 87 | Awaiting selection from Maya... 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | Clear Object 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /src/perParticleAttr.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | perParticleAttr 4 | 5 | 6 | 7 | 0 8 | 0 9 | 414 10 | 601 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Evaluate expression: 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | At Creation 29 | 30 | 31 | 32 | 33 | Before Dynamics 34 | 35 | 36 | 37 | 38 | After Dynamics 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | Expression: 47 | 48 | 49 | 50 | 51 | 52 | 53 | 0 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | Particle Attributes: 64 | 65 | 66 | 67 | 68 | 69 | 70 | Qt::Horizontal 71 | 72 | 73 | 74 | 100 75 | 20 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | Qt::Vertical 84 | 85 | 86 | 87 | 20 88 | 40 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | Update Expression 97 | 98 | 99 | 100 | 101 | 102 | 103 | true 104 | 105 | 106 | QAbstractItemView::DragOnly 107 | 108 | 109 | 110 | position 111 | 112 | 113 | 114 | 115 | velocity 116 | 117 | 118 | 119 | 120 | acceleration 121 | 122 | 123 | 124 | 125 | mass 126 | 127 | 128 | 129 | 130 | opacityPP 131 | 132 | 133 | 134 | 135 | lifespanPP 136 | 137 | 138 | 139 | 140 | rgbPP 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | ParticleShape: 149 | 150 | 151 | 152 | 153 | 154 | 155 | None 156 | 157 | 158 | true 159 | 160 | 161 | true 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | runExpression 171 | activated(int) 172 | particleAttrExpressions 173 | setCurrentIndex(int) 174 | 175 | 176 | 135 177 | 30 178 | 179 | 180 | 145 181 | 185 182 | 183 | 184 | 185 | 186 | 187 | -------------------------------------------------------------------------------- /src/renderStats.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | renderStats 4 | 5 | 6 | 7 | 0 8 | 0 9 | 251 10 | 300 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Visible in Reflections 21 | 22 | 23 | 24 | 25 | 26 | 27 | Visible in Refractions 28 | 29 | 30 | 31 | 32 | 33 | 34 | Casts Shadows 35 | 36 | 37 | true 38 | 39 | 40 | 41 | 42 | 43 | 44 | Receive Shadows 45 | 46 | 47 | true 48 | 49 | 50 | 51 | 52 | 53 | 54 | Primary Visibility 55 | 56 | 57 | true 58 | 59 | 60 | 61 | 62 | 63 | 64 | Qt::Horizontal 65 | 66 | 67 | 68 | 40 69 | 20 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | Qt::Vertical 78 | 79 | 80 | 81 | 20 82 | 40 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | Motion Blur 91 | 92 | 93 | true 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /src/testWidget.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Form 4 | 5 | 6 | 7 | 0 8 | 0 9 | 188 10 | 189 11 | 12 | 13 | 14 | 15 | 0 16 | 0 17 | 18 | 19 | 20 | Form 21 | 22 | 23 | 24 | QLayout::SetDefaultConstraint 25 | 26 | 27 | 28 | 29 | Text Label: 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | RadioButton 40 | 41 | 42 | 43 | 44 | 45 | 46 | RadioButton 47 | 48 | 49 | 50 | 51 | 52 | 53 | RadioButton 54 | 55 | 56 | 57 | 58 | 59 | 60 | CheckBox 61 | 62 | 63 | 64 | 65 | 66 | 67 | PushButton 68 | 69 | 70 | 71 | 72 | 73 | 74 | Qt::Horizontal 75 | 76 | 77 | QSizePolicy::Expanding 78 | 79 | 80 | 81 | 40 82 | 20 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /src/timeAttrs.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | timeAttrs 4 | 5 | 6 | 7 | 0 8 | 0 9 | 305 10 | 201 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Start Frame 21 | 22 | 23 | 24 | 25 | 26 | 27 | 3 28 | 29 | 30 | -1000000000.000000000000000 31 | 32 | 33 | 1000000000.000000000000000 34 | 35 | 36 | 1.000000000000000 37 | 38 | 39 | 40 | 41 | 42 | 43 | Current Frame 44 | 45 | 46 | 47 | 48 | 49 | 50 | Qt::Vertical 51 | 52 | 53 | 54 | 20 55 | 40 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | Qt::Horizontal 64 | 65 | 66 | 67 | 200 68 | 20 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 0 78 | 0 79 | 80 | 81 | 82 | 83 | 0 84 | 0 85 | 86 | 87 | 88 | 1 89 | 90 | 91 | Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter 92 | 93 | 94 | true 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /src/volSpeedAttr.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | volSpeedAttr 4 | 5 | 6 | 7 | 0 8 | 0 9 | 251 10 | 300 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Away From Center 21 | 22 | 23 | 24 | 25 | 26 | 27 | 3 28 | 29 | 30 | -1000000000.000000000000000 31 | 32 | 33 | 1000000000.000000000000000 34 | 35 | 36 | 1.000000000000000 37 | 38 | 39 | 40 | 41 | 42 | 43 | Away From Axis 44 | 45 | 46 | 47 | 48 | 49 | 50 | Along Axis 51 | 52 | 53 | 54 | 55 | 56 | 57 | Around Axis 58 | 59 | 60 | 61 | 62 | 63 | 64 | 3 65 | 66 | 67 | -1000000000.000000000000000 68 | 69 | 70 | 1000000000.000000000000000 71 | 72 | 73 | 74 | 75 | 76 | 77 | Random Direction 78 | 79 | 80 | 81 | 82 | 83 | 84 | 3 85 | 86 | 87 | -1000000000.000000000000000 88 | 89 | 90 | 1000000000.000000000000000 91 | 92 | 93 | 94 | 95 | 96 | 97 | Directional Speed 98 | 99 | 100 | 101 | 102 | 103 | 104 | 3 105 | 106 | 107 | -1000000000.000000000000000 108 | 109 | 110 | 1000000000.000000000000000 111 | 112 | 113 | 114 | 115 | 116 | 117 | Scale Speed by Size 118 | 119 | 120 | 121 | 122 | 123 | 124 | Display Speed 125 | 126 | 127 | true 128 | 129 | 130 | 131 | 132 | 133 | 134 | 3 135 | 136 | 137 | -1000000000.000000000000000 138 | 139 | 140 | 1000000000.000000000000000 141 | 142 | 143 | 144 | 145 | 146 | 147 | Qt::Horizontal 148 | 149 | 150 | 151 | 40 152 | 20 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | Qt::Vertical 161 | 162 | 163 | 164 | 20 165 | 40 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 3 174 | 175 | 176 | -1000000000.000000000000000 177 | 178 | 179 | 1000000000.000000000000000 180 | 181 | 182 | 1.000000000000000 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | -------------------------------------------------------------------------------- /src/vortexForce.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | vortexForce 4 | 5 | 6 | 7 | 0 8 | 0 9 | 289 10 | 221 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 20 | Magnitude 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 0 29 | 0 30 | 31 | 32 | 33 | -999999999.000000000000000 34 | 35 | 36 | 999999999.000000000000000 37 | 38 | 39 | 5.000000000000000 40 | 41 | 42 | 43 | 44 | 45 | 46 | Attenuation 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 0 55 | 0 56 | 57 | 58 | 59 | -999999999.000000000000000 60 | 61 | 62 | 999999999.000000000000000 63 | 64 | 65 | 1.000000000000000 66 | 67 | 68 | 69 | 70 | 71 | 72 | Axis: 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 0 81 | 0 82 | 83 | 84 | 85 | -999999999.000000000000000 86 | 87 | 88 | 999999999.000000000000000 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 0 97 | 0 98 | 99 | 100 | 101 | -999999999.000000000000000 102 | 103 | 104 | 999999999.000000000000000 105 | 106 | 107 | 1.000000000000000 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 0 116 | 0 117 | 118 | 119 | 120 | -999999999.000000000000000 121 | 122 | 123 | 999999999.000000000000000 124 | 125 | 126 | 127 | 128 | 129 | 130 | Qt::Horizontal 131 | 132 | 133 | 134 | 40 135 | 20 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | Qt::Vertical 144 | 145 | 146 | 147 | 20 148 | 40 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | -------------------------------------------------------------------------------- /ui/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'Tim' 2 | __all__ = 'nodeWidgetsModule' -------------------------------------------------------------------------------- /ui/airForceAttr.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'airForceAttr.ui' 4 | # 5 | # Created: Sun Mar 18 13:32:47 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_airForceAttr(object): 13 | def setupUi(self, airForceAttr): 14 | airForceAttr.setObjectName("airForceAttr") 15 | airForceAttr.resize(251, 291) 16 | self.gridLayout = QtGui.QGridLayout(airForceAttr) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.magnitudeLabel = QtGui.QLabel(airForceAttr) 19 | self.magnitudeLabel.setObjectName("magnitudeLabel") 20 | self.gridLayout.addWidget(self.magnitudeLabel, 0, 0, 1, 1) 21 | self.magnitude = QtGui.QDoubleSpinBox(airForceAttr) 22 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 23 | sizePolicy.setHorizontalStretch(0) 24 | sizePolicy.setVerticalStretch(0) 25 | sizePolicy.setHeightForWidth(self.magnitude.sizePolicy().hasHeightForWidth()) 26 | self.magnitude.setSizePolicy(sizePolicy) 27 | self.magnitude.setMinimum(-999999999.0) 28 | self.magnitude.setMaximum(999999999.0) 29 | self.magnitude.setProperty("value", 4.0) 30 | self.magnitude.setObjectName("magnitude") 31 | self.gridLayout.addWidget(self.magnitude, 0, 1, 1, 1) 32 | self.attenuationLabel = QtGui.QLabel(airForceAttr) 33 | self.attenuationLabel.setObjectName("attenuationLabel") 34 | self.gridLayout.addWidget(self.attenuationLabel, 1, 0, 1, 1) 35 | self.attenuation = QtGui.QDoubleSpinBox(airForceAttr) 36 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 37 | sizePolicy.setHorizontalStretch(0) 38 | sizePolicy.setVerticalStretch(0) 39 | sizePolicy.setHeightForWidth(self.attenuation.sizePolicy().hasHeightForWidth()) 40 | self.attenuation.setSizePolicy(sizePolicy) 41 | self.attenuation.setMinimum(-999999999.0) 42 | self.attenuation.setMaximum(999999999.0) 43 | self.attenuation.setProperty("value", 1.0) 44 | self.attenuation.setObjectName("attenuation") 45 | self.gridLayout.addWidget(self.attenuation, 1, 1, 1, 1) 46 | self.directionLabel = QtGui.QLabel(airForceAttr) 47 | self.directionLabel.setObjectName("directionLabel") 48 | self.gridLayout.addWidget(self.directionLabel, 2, 0, 1, 1) 49 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 50 | self.gridLayout.addItem(spacerItem, 3, 3, 1, 1) 51 | self.speedLabel = QtGui.QLabel(airForceAttr) 52 | self.speedLabel.setObjectName("speedLabel") 53 | self.gridLayout.addWidget(self.speedLabel, 4, 0, 1, 1) 54 | self.speed = QtGui.QDoubleSpinBox(airForceAttr) 55 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 56 | sizePolicy.setHorizontalStretch(0) 57 | sizePolicy.setVerticalStretch(0) 58 | sizePolicy.setHeightForWidth(self.speed.sizePolicy().hasHeightForWidth()) 59 | self.speed.setSizePolicy(sizePolicy) 60 | self.speed.setMinimum(-999999999.0) 61 | self.speed.setMaximum(999999999.0) 62 | self.speed.setProperty("value", 1.0) 63 | self.speed.setObjectName("speed") 64 | self.gridLayout.addWidget(self.speed, 4, 1, 1, 1) 65 | self.inheritVelocityLabel = QtGui.QLabel(airForceAttr) 66 | self.inheritVelocityLabel.setObjectName("inheritVelocityLabel") 67 | self.gridLayout.addWidget(self.inheritVelocityLabel, 5, 0, 1, 1) 68 | self.inheritVelocity = QtGui.QDoubleSpinBox(airForceAttr) 69 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 70 | sizePolicy.setHorizontalStretch(0) 71 | sizePolicy.setVerticalStretch(0) 72 | sizePolicy.setHeightForWidth(self.inheritVelocity.sizePolicy().hasHeightForWidth()) 73 | self.inheritVelocity.setSizePolicy(sizePolicy) 74 | self.inheritVelocity.setProperty("value", 1.0) 75 | self.inheritVelocity.setObjectName("inheritVelocity") 76 | self.gridLayout.addWidget(self.inheritVelocity, 5, 1, 1, 1) 77 | self.inheritRotation = QtGui.QCheckBox(airForceAttr) 78 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 79 | sizePolicy.setHorizontalStretch(0) 80 | sizePolicy.setVerticalStretch(0) 81 | sizePolicy.setHeightForWidth(self.inheritRotation.sizePolicy().hasHeightForWidth()) 82 | self.inheritRotation.setSizePolicy(sizePolicy) 83 | self.inheritRotation.setChecked(False) 84 | self.inheritRotation.setObjectName("inheritRotation") 85 | self.gridLayout.addWidget(self.inheritRotation, 6, 0, 1, 2) 86 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 87 | self.gridLayout.addItem(spacerItem1, 7, 0, 1, 1) 88 | self.directionX = QtGui.QDoubleSpinBox(airForceAttr) 89 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 90 | sizePolicy.setHorizontalStretch(0) 91 | sizePolicy.setVerticalStretch(0) 92 | sizePolicy.setHeightForWidth(self.directionX.sizePolicy().hasHeightForWidth()) 93 | self.directionX.setSizePolicy(sizePolicy) 94 | self.directionX.setMaximum(1.0) 95 | self.directionX.setSingleStep(0.01) 96 | self.directionX.setProperty("value", 1.0) 97 | self.directionX.setObjectName("directionX") 98 | self.gridLayout.addWidget(self.directionX, 3, 0, 1, 1) 99 | self.directionZ = QtGui.QDoubleSpinBox(airForceAttr) 100 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 101 | sizePolicy.setHorizontalStretch(0) 102 | sizePolicy.setVerticalStretch(0) 103 | sizePolicy.setHeightForWidth(self.directionZ.sizePolicy().hasHeightForWidth()) 104 | self.directionZ.setSizePolicy(sizePolicy) 105 | self.directionZ.setMaximum(1.0) 106 | self.directionZ.setSingleStep(0.01) 107 | self.directionZ.setObjectName("directionZ") 108 | self.gridLayout.addWidget(self.directionZ, 3, 2, 1, 1) 109 | self.directionY = QtGui.QDoubleSpinBox(airForceAttr) 110 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 111 | sizePolicy.setHorizontalStretch(0) 112 | sizePolicy.setVerticalStretch(0) 113 | sizePolicy.setHeightForWidth(self.directionY.sizePolicy().hasHeightForWidth()) 114 | self.directionY.setSizePolicy(sizePolicy) 115 | self.directionY.setMaximum(1.0) 116 | self.directionY.setSingleStep(0.01) 117 | self.directionY.setProperty("value", 0.0) 118 | self.directionY.setObjectName("directionY") 119 | self.gridLayout.addWidget(self.directionY, 3, 1, 1, 1) 120 | 121 | self.retranslateUi(airForceAttr) 122 | QtCore.QMetaObject.connectSlotsByName(airForceAttr) 123 | 124 | def retranslateUi(self, airForceAttr): 125 | airForceAttr.setWindowTitle(QtGui.QApplication.translate("airForceAttr", "Form", None, QtGui.QApplication.UnicodeUTF8)) 126 | self.magnitudeLabel.setText(QtGui.QApplication.translate("airForceAttr", "Magnitude", None, QtGui.QApplication.UnicodeUTF8)) 127 | self.attenuationLabel.setText(QtGui.QApplication.translate("airForceAttr", "Attenuation", None, QtGui.QApplication.UnicodeUTF8)) 128 | self.directionLabel.setText(QtGui.QApplication.translate("airForceAttr", "Direction:", None, QtGui.QApplication.UnicodeUTF8)) 129 | self.speedLabel.setText(QtGui.QApplication.translate("airForceAttr", "Speed", None, QtGui.QApplication.UnicodeUTF8)) 130 | self.inheritVelocityLabel.setText(QtGui.QApplication.translate("airForceAttr", "Inherit Velocity", None, QtGui.QApplication.UnicodeUTF8)) 131 | self.inheritRotation.setText(QtGui.QApplication.translate("airForceAttr", "Inherit Rotation", None, QtGui.QApplication.UnicodeUTF8)) 132 | 133 | -------------------------------------------------------------------------------- /ui/basicEmSpeedAttr.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'basicEmSpeedAttr.ui' 4 | # 5 | # Created: Mon Mar 12 16:33:52 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_basicEmSpeedAttr(object): 13 | def setupUi(self, basicEmSpeedAttr): 14 | basicEmSpeedAttr.setObjectName("basicEmSpeedAttr") 15 | basicEmSpeedAttr.resize(305, 201) 16 | self.gridLayout = QtGui.QGridLayout(basicEmSpeedAttr) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.speedLabel = QtGui.QLabel(basicEmSpeedAttr) 19 | self.speedLabel.setObjectName("speedLabel") 20 | self.gridLayout.addWidget(self.speedLabel, 0, 0, 1, 1) 21 | self.speed = QtGui.QDoubleSpinBox(basicEmSpeedAttr) 22 | self.speed.setDecimals(3) 23 | self.speed.setMinimum(-1000000000.0) 24 | self.speed.setMaximum(1000000000.0) 25 | self.speed.setProperty("value", 1.0) 26 | self.speed.setObjectName("speed") 27 | self.gridLayout.addWidget(self.speed, 0, 1, 1, 1) 28 | self.speedRandLabel = QtGui.QLabel(basicEmSpeedAttr) 29 | self.speedRandLabel.setObjectName("speedRandLabel") 30 | self.gridLayout.addWidget(self.speedRandLabel, 1, 0, 1, 1) 31 | self.speedRandom = QtGui.QDoubleSpinBox(basicEmSpeedAttr) 32 | self.speedRandom.setDecimals(3) 33 | self.speedRandom.setMinimum(-1000000000.0) 34 | self.speedRandom.setMaximum(1000000000.0) 35 | self.speedRandom.setProperty("value", 0.0) 36 | self.speedRandom.setObjectName("speedRandom") 37 | self.gridLayout.addWidget(self.speedRandom, 1, 1, 1, 1) 38 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 39 | self.gridLayout.addItem(spacerItem, 1, 3, 1, 1) 40 | self.tangentSpeedLabel = QtGui.QLabel(basicEmSpeedAttr) 41 | self.tangentSpeedLabel.setObjectName("tangentSpeedLabel") 42 | self.gridLayout.addWidget(self.tangentSpeedLabel, 2, 0, 1, 1) 43 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 44 | self.gridLayout.addItem(spacerItem1, 5, 1, 1, 1) 45 | self.tangentSpeed = QtGui.QDoubleSpinBox(basicEmSpeedAttr) 46 | self.tangentSpeed.setDecimals(3) 47 | self.tangentSpeed.setMinimum(-1000000000.0) 48 | self.tangentSpeed.setMaximum(1000000000.0) 49 | self.tangentSpeed.setProperty("value", 0.0) 50 | self.tangentSpeed.setObjectName("tangentSpeed") 51 | self.gridLayout.addWidget(self.tangentSpeed, 2, 1, 1, 1) 52 | self.normalSpeed = QtGui.QDoubleSpinBox(basicEmSpeedAttr) 53 | self.normalSpeed.setDecimals(3) 54 | self.normalSpeed.setMinimum(-1000000000.0) 55 | self.normalSpeed.setMaximum(1000000000.0) 56 | self.normalSpeed.setProperty("value", 1.0) 57 | self.normalSpeed.setObjectName("normalSpeed") 58 | self.gridLayout.addWidget(self.normalSpeed, 3, 1, 1, 1) 59 | self.normalSpeedLabel = QtGui.QLabel(basicEmSpeedAttr) 60 | self.normalSpeedLabel.setObjectName("normalSpeedLabel") 61 | self.gridLayout.addWidget(self.normalSpeedLabel, 3, 0, 1, 1) 62 | 63 | self.retranslateUi(basicEmSpeedAttr) 64 | QtCore.QMetaObject.connectSlotsByName(basicEmSpeedAttr) 65 | 66 | def retranslateUi(self, basicEmSpeedAttr): 67 | basicEmSpeedAttr.setWindowTitle(QtGui.QApplication.translate("basicEmSpeedAttr", "Form", None, QtGui.QApplication.UnicodeUTF8)) 68 | self.speedLabel.setText(QtGui.QApplication.translate("basicEmSpeedAttr", "Speed", None, QtGui.QApplication.UnicodeUTF8)) 69 | self.speedRandLabel.setText(QtGui.QApplication.translate("basicEmSpeedAttr", "Speed Random", None, QtGui.QApplication.UnicodeUTF8)) 70 | self.tangentSpeedLabel.setText(QtGui.QApplication.translate("basicEmSpeedAttr", "Tangent Speed", None, QtGui.QApplication.UnicodeUTF8)) 71 | self.normalSpeedLabel.setText(QtGui.QApplication.translate("basicEmSpeedAttr", "Normal Speed", None, QtGui.QApplication.UnicodeUTF8)) 72 | 73 | -------------------------------------------------------------------------------- /ui/behaviorCat.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'behaviorCat.ui' 4 | # 5 | # Created: Fri Mar 09 15:11:30 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_behaviorCat(object): 13 | def setupUi(self, behaviorCat): 14 | behaviorCat.setObjectName("behaviorCat") 15 | behaviorCat.resize(336, 344) 16 | self.gridLayout = QtGui.QGridLayout(behaviorCat) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.particleNameLabel = QtGui.QLabel(behaviorCat) 19 | self.particleNameLabel.setObjectName("particleNameLabel") 20 | self.gridLayout.addWidget(self.particleNameLabel, 0, 0, 1, 1) 21 | self.particleName = QtGui.QLineEdit(behaviorCat) 22 | self.particleName.setObjectName("particleName") 23 | self.gridLayout.addWidget(self.particleName, 1, 0, 1, 1) 24 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 25 | self.gridLayout.addItem(spacerItem, 0, 1, 1, 1) 26 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 27 | self.gridLayout.addItem(spacerItem1, 2, 0, 1, 1) 28 | 29 | self.retranslateUi(behaviorCat) 30 | QtCore.QMetaObject.connectSlotsByName(behaviorCat) 31 | 32 | def retranslateUi(self, behaviorCat): 33 | behaviorCat.setWindowTitle(QtGui.QApplication.translate("behaviorCat", "Form", None, QtGui.QApplication.UnicodeUTF8)) 34 | self.particleNameLabel.setText(QtGui.QApplication.translate("behaviorCat", "ParticleShape name:", None, QtGui.QApplication.UnicodeUTF8)) 35 | 36 | -------------------------------------------------------------------------------- /ui/colliderUtil.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'colliderUtil.ui' 4 | # 5 | # Created: Mon Mar 19 15:08:23 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_colliderUtil(object): 13 | def setupUi(self, colliderUtil): 14 | colliderUtil.setObjectName("colliderUtil") 15 | colliderUtil.resize(400, 300) 16 | self.gridLayout = QtGui.QGridLayout(colliderUtil) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.resilienceLabel = QtGui.QLabel(colliderUtil) 19 | self.resilienceLabel.setObjectName("resilienceLabel") 20 | self.gridLayout.addWidget(self.resilienceLabel, 0, 0, 1, 1) 21 | self.resilience = QtGui.QDoubleSpinBox(colliderUtil) 22 | self.resilience.setDecimals(3) 23 | self.resilience.setMaximum(1.0) 24 | self.resilience.setSingleStep(0.01) 25 | self.resilience.setProperty("value", 1.0) 26 | self.resilience.setObjectName("resilience") 27 | self.gridLayout.addWidget(self.resilience, 0, 1, 1, 1) 28 | self.frictionLabel = QtGui.QLabel(colliderUtil) 29 | self.frictionLabel.setObjectName("frictionLabel") 30 | self.gridLayout.addWidget(self.frictionLabel, 1, 0, 1, 1) 31 | self.friction = QtGui.QDoubleSpinBox(colliderUtil) 32 | self.friction.setDecimals(3) 33 | self.friction.setMaximum(1.0) 34 | self.friction.setSingleStep(0.01) 35 | self.friction.setProperty("value", 0.0) 36 | self.friction.setObjectName("friction") 37 | self.gridLayout.addWidget(self.friction, 1, 1, 1, 1) 38 | self.offsetLabel = QtGui.QLabel(colliderUtil) 39 | self.offsetLabel.setObjectName("offsetLabel") 40 | self.gridLayout.addWidget(self.offsetLabel, 2, 0, 1, 1) 41 | self.offset = QtGui.QDoubleSpinBox(colliderUtil) 42 | self.offset.setDecimals(3) 43 | self.offset.setMinimum(0.001) 44 | self.offset.setMaximum(1.0) 45 | self.offset.setSingleStep(0.01) 46 | self.offset.setProperty("value", 0.01) 47 | self.offset.setObjectName("offset") 48 | self.gridLayout.addWidget(self.offset, 2, 1, 1, 1) 49 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 50 | self.gridLayout.addItem(spacerItem, 0, 2, 1, 1) 51 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 52 | self.gridLayout.addItem(spacerItem1, 3, 1, 1, 1) 53 | 54 | self.retranslateUi(colliderUtil) 55 | QtCore.QMetaObject.connectSlotsByName(colliderUtil) 56 | 57 | def retranslateUi(self, colliderUtil): 58 | colliderUtil.setWindowTitle(QtGui.QApplication.translate("colliderUtil", "Form", None, QtGui.QApplication.UnicodeUTF8)) 59 | self.resilienceLabel.setText(QtGui.QApplication.translate("colliderUtil", "Bounciness", None, QtGui.QApplication.UnicodeUTF8)) 60 | self.frictionLabel.setText(QtGui.QApplication.translate("colliderUtil", "Friction", None, QtGui.QApplication.UnicodeUTF8)) 61 | self.offsetLabel.setText(QtGui.QApplication.translate("colliderUtil", "Offset", None, QtGui.QApplication.UnicodeUTF8)) 62 | 63 | -------------------------------------------------------------------------------- /ui/distDirAttr.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'distDirAttr.ui' 4 | # 5 | # Created: Mon Mar 12 16:34:58 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_distDirAttr(object): 13 | def setupUi(self, distDirAttr): 14 | distDirAttr.setObjectName("distDirAttr") 15 | distDirAttr.resize(305, 201) 16 | self.gridLayout = QtGui.QGridLayout(distDirAttr) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.minDistLabel = QtGui.QLabel(distDirAttr) 19 | self.minDistLabel.setObjectName("minDistLabel") 20 | self.gridLayout.addWidget(self.minDistLabel, 0, 0, 1, 1) 21 | self.minDist = QtGui.QDoubleSpinBox(distDirAttr) 22 | self.minDist.setDecimals(3) 23 | self.minDist.setMinimum(-1000000000.0) 24 | self.minDist.setMaximum(1000000000.0) 25 | self.minDist.setProperty("value", 0.0) 26 | self.minDist.setObjectName("minDist") 27 | self.gridLayout.addWidget(self.minDist, 0, 1, 1, 1) 28 | self.maxDistLabel = QtGui.QLabel(distDirAttr) 29 | self.maxDistLabel.setObjectName("maxDistLabel") 30 | self.gridLayout.addWidget(self.maxDistLabel, 1, 0, 1, 1) 31 | self.maxDist = QtGui.QDoubleSpinBox(distDirAttr) 32 | self.maxDist.setDecimals(3) 33 | self.maxDist.setMinimum(-1000000000.0) 34 | self.maxDist.setMaximum(1000000000.0) 35 | self.maxDist.setProperty("value", 0.0) 36 | self.maxDist.setObjectName("maxDist") 37 | self.gridLayout.addWidget(self.maxDist, 1, 1, 1, 1) 38 | self.dirXLabel = QtGui.QLabel(distDirAttr) 39 | self.dirXLabel.setObjectName("dirXLabel") 40 | self.gridLayout.addWidget(self.dirXLabel, 2, 0, 1, 1) 41 | self.dirX = QtGui.QDoubleSpinBox(distDirAttr) 42 | self.dirX.setDecimals(3) 43 | self.dirX.setMinimum(-1000000000.0) 44 | self.dirX.setMaximum(1000000000.0) 45 | self.dirX.setProperty("value", 1.0) 46 | self.dirX.setObjectName("dirX") 47 | self.gridLayout.addWidget(self.dirX, 2, 1, 1, 1) 48 | self.dirYLabel = QtGui.QLabel(distDirAttr) 49 | self.dirYLabel.setObjectName("dirYLabel") 50 | self.gridLayout.addWidget(self.dirYLabel, 3, 0, 1, 1) 51 | self.dirY = QtGui.QDoubleSpinBox(distDirAttr) 52 | self.dirY.setDecimals(3) 53 | self.dirY.setMinimum(-1000000000.0) 54 | self.dirY.setMaximum(1000000000.0) 55 | self.dirY.setProperty("value", 0.0) 56 | self.dirY.setObjectName("dirY") 57 | self.gridLayout.addWidget(self.dirY, 3, 1, 1, 1) 58 | self.dirZLabel = QtGui.QLabel(distDirAttr) 59 | self.dirZLabel.setObjectName("dirZLabel") 60 | self.gridLayout.addWidget(self.dirZLabel, 4, 0, 1, 1) 61 | self.dirZ = QtGui.QDoubleSpinBox(distDirAttr) 62 | self.dirZ.setDecimals(3) 63 | self.dirZ.setMinimum(-1000000000.0) 64 | self.dirZ.setMaximum(1000000000.0) 65 | self.dirZ.setProperty("value", 0.0) 66 | self.dirZ.setObjectName("dirZ") 67 | self.gridLayout.addWidget(self.dirZ, 4, 1, 1, 1) 68 | self.spreadLabel = QtGui.QLabel(distDirAttr) 69 | self.spreadLabel.setObjectName("spreadLabel") 70 | self.gridLayout.addWidget(self.spreadLabel, 5, 0, 1, 1) 71 | self.spread = QtGui.QDoubleSpinBox(distDirAttr) 72 | self.spread.setDecimals(3) 73 | self.spread.setMinimum(0.0) 74 | self.spread.setMaximum(1.0) 75 | self.spread.setSingleStep(0.01) 76 | self.spread.setProperty("value", 0.0) 77 | self.spread.setObjectName("spread") 78 | self.gridLayout.addWidget(self.spread, 5, 1, 1, 1) 79 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 80 | self.gridLayout.addItem(spacerItem, 3, 2, 1, 1) 81 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 82 | self.gridLayout.addItem(spacerItem1, 6, 1, 1, 1) 83 | 84 | self.retranslateUi(distDirAttr) 85 | QtCore.QMetaObject.connectSlotsByName(distDirAttr) 86 | 87 | def retranslateUi(self, distDirAttr): 88 | distDirAttr.setWindowTitle(QtGui.QApplication.translate("distDirAttr", "Form", None, QtGui.QApplication.UnicodeUTF8)) 89 | self.minDistLabel.setText(QtGui.QApplication.translate("distDirAttr", "Min Distance", None, QtGui.QApplication.UnicodeUTF8)) 90 | self.maxDistLabel.setText(QtGui.QApplication.translate("distDirAttr", "Max Distance", None, QtGui.QApplication.UnicodeUTF8)) 91 | self.dirXLabel.setText(QtGui.QApplication.translate("distDirAttr", "Direction X", None, QtGui.QApplication.UnicodeUTF8)) 92 | self.dirYLabel.setText(QtGui.QApplication.translate("distDirAttr", "Direction Y", None, QtGui.QApplication.UnicodeUTF8)) 93 | self.dirZLabel.setText(QtGui.QApplication.translate("distDirAttr", "Direction Z", None, QtGui.QApplication.UnicodeUTF8)) 94 | self.spreadLabel.setText(QtGui.QApplication.translate("distDirAttr", "Spread", None, QtGui.QApplication.UnicodeUTF8)) 95 | 96 | -------------------------------------------------------------------------------- /ui/emissionAttrs.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'emissionAttrs.ui' 4 | # 5 | # Created: Fri Mar 09 14:29:01 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_emissionAttrWidget(object): 13 | def setupUi(self, emissionAttrWidget): 14 | emissionAttrWidget.setObjectName("emissionAttrWidget") 15 | emissionAttrWidget.resize(270, 224) 16 | self.gridLayout = QtGui.QGridLayout(emissionAttrWidget) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.maxCountLabel = QtGui.QLabel(emissionAttrWidget) 19 | self.maxCountLabel.setObjectName("maxCountLabel") 20 | self.gridLayout.addWidget(self.maxCountLabel, 0, 0, 1, 1) 21 | self.maxCount = QtGui.QSpinBox(emissionAttrWidget) 22 | self.maxCount.setMinimum(-1) 23 | self.maxCount.setMaximum(100000000) 24 | self.maxCount.setProperty("value", -1) 25 | self.maxCount.setObjectName("maxCount") 26 | self.gridLayout.addWidget(self.maxCount, 0, 1, 1, 1) 27 | self.levelOfDetailLabel = QtGui.QLabel(emissionAttrWidget) 28 | self.levelOfDetailLabel.setObjectName("levelOfDetailLabel") 29 | self.gridLayout.addWidget(self.levelOfDetailLabel, 1, 0, 1, 1) 30 | self.levelOfDetail = QtGui.QDoubleSpinBox(emissionAttrWidget) 31 | self.levelOfDetail.setDecimals(4) 32 | self.levelOfDetail.setMaximum(1.0) 33 | self.levelOfDetail.setSingleStep(0.01) 34 | self.levelOfDetail.setProperty("value", 1.0) 35 | self.levelOfDetail.setObjectName("levelOfDetail") 36 | self.gridLayout.addWidget(self.levelOfDetail, 1, 1, 1, 1) 37 | self.inheritFactorLabel = QtGui.QLabel(emissionAttrWidget) 38 | self.inheritFactorLabel.setObjectName("inheritFactorLabel") 39 | self.gridLayout.addWidget(self.inheritFactorLabel, 2, 0, 1, 1) 40 | self.inheritFactor = QtGui.QDoubleSpinBox(emissionAttrWidget) 41 | self.inheritFactor.setDecimals(4) 42 | self.inheritFactor.setMaximum(1.0) 43 | self.inheritFactor.setSingleStep(0.01) 44 | self.inheritFactor.setProperty("value", 0.0) 45 | self.inheritFactor.setObjectName("inheritFactor") 46 | self.gridLayout.addWidget(self.inheritFactor, 2, 1, 1, 1) 47 | self.emissionInWorld = QtGui.QCheckBox(emissionAttrWidget) 48 | self.emissionInWorld.setChecked(True) 49 | self.emissionInWorld.setObjectName("emissionInWorld") 50 | self.gridLayout.addWidget(self.emissionInWorld, 3, 0, 1, 2) 51 | self.dieOnEmissionVolExit = QtGui.QCheckBox(emissionAttrWidget) 52 | self.dieOnEmissionVolExit.setObjectName("dieOnEmissionVolExit") 53 | self.gridLayout.addWidget(self.dieOnEmissionVolExit, 4, 0, 1, 2) 54 | spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 55 | self.gridLayout.addItem(spacerItem, 5, 0, 1, 1) 56 | spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 57 | self.gridLayout.addItem(spacerItem1, 2, 2, 1, 1) 58 | 59 | self.retranslateUi(emissionAttrWidget) 60 | QtCore.QMetaObject.connectSlotsByName(emissionAttrWidget) 61 | 62 | def retranslateUi(self, emissionAttrWidget): 63 | emissionAttrWidget.setWindowTitle(QtGui.QApplication.translate("emissionAttrWidget", "Form", None, QtGui.QApplication.UnicodeUTF8)) 64 | self.maxCountLabel.setText(QtGui.QApplication.translate("emissionAttrWidget", "Max Count", None, QtGui.QApplication.UnicodeUTF8)) 65 | self.levelOfDetailLabel.setText(QtGui.QApplication.translate("emissionAttrWidget", "Level of Detail", None, QtGui.QApplication.UnicodeUTF8)) 66 | self.inheritFactorLabel.setText(QtGui.QApplication.translate("emissionAttrWidget", "Inherit Factor", None, QtGui.QApplication.UnicodeUTF8)) 67 | self.emissionInWorld.setText(QtGui.QApplication.translate("emissionAttrWidget", "Emission In World", None, QtGui.QApplication.UnicodeUTF8)) 68 | self.dieOnEmissionVolExit.setText(QtGui.QApplication.translate("emissionAttrWidget", "Die on Emission Volume Exit", None, QtGui.QApplication.UnicodeUTF8)) 69 | 70 | -------------------------------------------------------------------------------- /ui/emitterCat.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'emitterCat.ui' 4 | # 5 | # Created: Thu Mar 08 14:40:26 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_emitterCat(object): 13 | def setupUi(self, emitterCat): 14 | emitterCat.setObjectName("emitterCat") 15 | emitterCat.resize(206, 270) 16 | self.gridLayout = QtGui.QGridLayout(emitterCat) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.emitterNameLabel = QtGui.QLabel(emitterCat) 19 | self.emitterNameLabel.setObjectName("emitterNameLabel") 20 | self.gridLayout.addWidget(self.emitterNameLabel, 0, 0, 1, 1) 21 | self.translateLabel = QtGui.QLabel(emitterCat) 22 | self.translateLabel.setObjectName("translateLabel") 23 | self.gridLayout.addWidget(self.translateLabel, 2, 0, 1, 1) 24 | self.rotateLabel = QtGui.QLabel(emitterCat) 25 | self.rotateLabel.setObjectName("rotateLabel") 26 | self.gridLayout.addWidget(self.rotateLabel, 4, 0, 1, 1) 27 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 28 | self.gridLayout.addItem(spacerItem, 2, 4, 1, 1) 29 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 30 | self.gridLayout.addItem(spacerItem1, 6, 1, 1, 1) 31 | self.tx = QtGui.QLineEdit(emitterCat) 32 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 33 | sizePolicy.setHorizontalStretch(0) 34 | sizePolicy.setVerticalStretch(0) 35 | sizePolicy.setHeightForWidth(self.tx.sizePolicy().hasHeightForWidth()) 36 | self.tx.setSizePolicy(sizePolicy) 37 | self.tx.setMinimumSize(QtCore.QSize(0, 0)) 38 | self.tx.setObjectName("tx") 39 | self.gridLayout.addWidget(self.tx, 3, 0, 1, 1) 40 | self.ty = QtGui.QLineEdit(emitterCat) 41 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 42 | sizePolicy.setHorizontalStretch(0) 43 | sizePolicy.setVerticalStretch(0) 44 | sizePolicy.setHeightForWidth(self.ty.sizePolicy().hasHeightForWidth()) 45 | self.ty.setSizePolicy(sizePolicy) 46 | self.ty.setObjectName("ty") 47 | self.gridLayout.addWidget(self.ty, 3, 1, 1, 1) 48 | self.tz = QtGui.QLineEdit(emitterCat) 49 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 50 | sizePolicy.setHorizontalStretch(0) 51 | sizePolicy.setVerticalStretch(0) 52 | sizePolicy.setHeightForWidth(self.tz.sizePolicy().hasHeightForWidth()) 53 | self.tz.setSizePolicy(sizePolicy) 54 | self.tz.setObjectName("tz") 55 | self.gridLayout.addWidget(self.tz, 3, 2, 1, 1) 56 | self.rx = QtGui.QLineEdit(emitterCat) 57 | self.rx.setObjectName("rx") 58 | self.gridLayout.addWidget(self.rx, 5, 0, 1, 1) 59 | self.ry = QtGui.QLineEdit(emitterCat) 60 | self.ry.setObjectName("ry") 61 | self.gridLayout.addWidget(self.ry, 5, 1, 1, 1) 62 | self.rz = QtGui.QLineEdit(emitterCat) 63 | self.rz.setObjectName("rz") 64 | self.gridLayout.addWidget(self.rz, 5, 2, 1, 1) 65 | self.emitterName = QtGui.QLineEdit(emitterCat) 66 | self.emitterName.setObjectName("emitterName") 67 | self.gridLayout.addWidget(self.emitterName, 1, 0, 1, 2) 68 | 69 | self.retranslateUi(emitterCat) 70 | QtCore.QMetaObject.connectSlotsByName(emitterCat) 71 | 72 | def retranslateUi(self, emitterCat): 73 | emitterCat.setWindowTitle(QtGui.QApplication.translate("emitterCat", "Form", None, QtGui.QApplication.UnicodeUTF8)) 74 | self.emitterNameLabel.setText(QtGui.QApplication.translate("emitterCat", "Emitter name: ", None, QtGui.QApplication.UnicodeUTF8)) 75 | self.translateLabel.setText(QtGui.QApplication.translate("emitterCat", "Translate:", None, QtGui.QApplication.UnicodeUTF8)) 76 | self.rotateLabel.setText(QtGui.QApplication.translate("emitterCat", "Rotate:", None, QtGui.QApplication.UnicodeUTF8)) 77 | self.tx.setText(QtGui.QApplication.translate("emitterCat", "0.0", None, QtGui.QApplication.UnicodeUTF8)) 78 | self.ty.setText(QtGui.QApplication.translate("emitterCat", "0.0", None, QtGui.QApplication.UnicodeUTF8)) 79 | self.tz.setText(QtGui.QApplication.translate("emitterCat", "0.0", None, QtGui.QApplication.UnicodeUTF8)) 80 | self.rx.setText(QtGui.QApplication.translate("emitterCat", "0.0", None, QtGui.QApplication.UnicodeUTF8)) 81 | self.ry.setText(QtGui.QApplication.translate("emitterCat", "0.0", None, QtGui.QApplication.UnicodeUTF8)) 82 | self.rz.setText(QtGui.QApplication.translate("emitterCat", "0.0", None, QtGui.QApplication.UnicodeUTF8)) 83 | 84 | -------------------------------------------------------------------------------- /ui/genControlAttr.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'genControlAttr.ui' 4 | # 5 | # Created: Fri Mar 09 19:16:40 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_genControlAttr(object): 13 | def setupUi(self, genControlAttr): 14 | genControlAttr.setObjectName("genControlAttr") 15 | genControlAttr.resize(251, 300) 16 | self.gridLayout = QtGui.QGridLayout(genControlAttr) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.isDynamic = QtGui.QCheckBox(genControlAttr) 19 | self.isDynamic.setChecked(True) 20 | self.isDynamic.setObjectName("isDynamic") 21 | self.gridLayout.addWidget(self.isDynamic, 0, 0, 1, 2) 22 | self.dynamicWeightsLabel = QtGui.QLabel(genControlAttr) 23 | self.dynamicWeightsLabel.setObjectName("dynamicWeightsLabel") 24 | self.gridLayout.addWidget(self.dynamicWeightsLabel, 1, 0, 1, 1) 25 | self.dynamicsWeight = QtGui.QDoubleSpinBox(genControlAttr) 26 | self.dynamicsWeight.setDecimals(3) 27 | self.dynamicsWeight.setMaximum(1.0) 28 | self.dynamicsWeight.setSingleStep(0.01) 29 | self.dynamicsWeight.setProperty("value", 1.0) 30 | self.dynamicsWeight.setObjectName("dynamicsWeight") 31 | self.gridLayout.addWidget(self.dynamicsWeight, 1, 1, 1, 1) 32 | self.conserveLabel = QtGui.QLabel(genControlAttr) 33 | self.conserveLabel.setObjectName("conserveLabel") 34 | self.gridLayout.addWidget(self.conserveLabel, 2, 0, 1, 1) 35 | self.conserve = QtGui.QDoubleSpinBox(genControlAttr) 36 | self.conserve.setDecimals(3) 37 | self.conserve.setMaximum(1.0) 38 | self.conserve.setSingleStep(0.01) 39 | self.conserve.setProperty("value", 1.0) 40 | self.conserve.setObjectName("conserve") 41 | self.gridLayout.addWidget(self.conserve, 2, 1, 1, 1) 42 | self.forcesInWorld = QtGui.QCheckBox(genControlAttr) 43 | self.forcesInWorld.setChecked(True) 44 | self.forcesInWorld.setObjectName("forcesInWorld") 45 | self.gridLayout.addWidget(self.forcesInWorld, 3, 0, 1, 2) 46 | self.countLabel = QtGui.QLabel(genControlAttr) 47 | self.countLabel.setObjectName("countLabel") 48 | self.gridLayout.addWidget(self.countLabel, 4, 0, 1, 1) 49 | self.count = QtGui.QLineEdit(genControlAttr) 50 | self.count.setObjectName("count") 51 | self.gridLayout.addWidget(self.count, 4, 1, 1, 1) 52 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 53 | self.gridLayout.addItem(spacerItem, 1, 2, 1, 1) 54 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 55 | self.gridLayout.addItem(spacerItem1, 5, 1, 1, 1) 56 | 57 | self.retranslateUi(genControlAttr) 58 | QtCore.QMetaObject.connectSlotsByName(genControlAttr) 59 | 60 | def retranslateUi(self, genControlAttr): 61 | genControlAttr.setWindowTitle(QtGui.QApplication.translate("genControlAttr", "Form", None, QtGui.QApplication.UnicodeUTF8)) 62 | self.isDynamic.setText(QtGui.QApplication.translate("genControlAttr", "Is Dynamic", None, QtGui.QApplication.UnicodeUTF8)) 63 | self.dynamicWeightsLabel.setText(QtGui.QApplication.translate("genControlAttr", "Dynamics Weight", None, QtGui.QApplication.UnicodeUTF8)) 64 | self.conserveLabel.setText(QtGui.QApplication.translate("genControlAttr", "Conserve", None, QtGui.QApplication.UnicodeUTF8)) 65 | self.forcesInWorld.setText(QtGui.QApplication.translate("genControlAttr", "Forces in World", None, QtGui.QApplication.UnicodeUTF8)) 66 | self.countLabel.setText(QtGui.QApplication.translate("genControlAttr", "Count", None, QtGui.QApplication.UnicodeUTF8)) 67 | 68 | -------------------------------------------------------------------------------- /ui/goalAttr.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'goalAttr.ui' 4 | # 5 | # Created: Sat Mar 17 14:00:31 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_goalAttr(object): 13 | def setupUi(self, goalAttr): 14 | goalAttr.setObjectName("goalAttr") 15 | goalAttr.resize(290, 362) 16 | self.gridLayout = QtGui.QGridLayout(goalAttr) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.goalSmoothnessLabel = QtGui.QLabel(goalAttr) 19 | self.goalSmoothnessLabel.setObjectName("goalSmoothnessLabel") 20 | self.gridLayout.addWidget(self.goalSmoothnessLabel, 0, 0, 1, 1) 21 | self.goalSmoothness = QtGui.QDoubleSpinBox(goalAttr) 22 | self.goalSmoothness.setDecimals(3) 23 | self.goalSmoothness.setMaximum(999999999.0) 24 | self.goalSmoothness.setProperty("value", 3.0) 25 | self.goalSmoothness.setObjectName("goalSmoothness") 26 | self.gridLayout.addWidget(self.goalSmoothness, 0, 1, 1, 1) 27 | self.goalObject = QtGui.QLabel(goalAttr) 28 | self.goalObject.setObjectName("goalObject") 29 | self.gridLayout.addWidget(self.goalObject, 1, 0, 1, 1) 30 | self.goalWeight = QtGui.QDoubleSpinBox(goalAttr) 31 | self.goalWeight.setDecimals(3) 32 | self.goalWeight.setMaximum(1.0) 33 | self.goalWeight.setSingleStep(0.01) 34 | self.goalWeight.setProperty("value", 0.5) 35 | self.goalWeight.setObjectName("goalWeight") 36 | self.gridLayout.addWidget(self.goalWeight, 1, 1, 1, 1) 37 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 38 | self.gridLayout.addItem(spacerItem, 0, 2, 1, 1) 39 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 40 | self.gridLayout.addItem(spacerItem1, 2, 1, 1, 1) 41 | 42 | self.retranslateUi(goalAttr) 43 | QtCore.QMetaObject.connectSlotsByName(goalAttr) 44 | 45 | def retranslateUi(self, goalAttr): 46 | goalAttr.setWindowTitle(QtGui.QApplication.translate("goalAttr", "Form", None, QtGui.QApplication.UnicodeUTF8)) 47 | self.goalSmoothnessLabel.setText(QtGui.QApplication.translate("goalAttr", "Goal Smoothness", None, QtGui.QApplication.UnicodeUTF8)) 48 | self.goalObject.setText(QtGui.QApplication.translate("goalAttr", "Goal Weight", None, QtGui.QApplication.UnicodeUTF8)) 49 | 50 | -------------------------------------------------------------------------------- /ui/gravityForce.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'gravityForce.ui' 4 | # 5 | # Created: Sat Mar 17 16:16:38 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_gravityForce(object): 13 | def setupUi(self, gravityForce): 14 | gravityForce.setObjectName("gravityForce") 15 | gravityForce.resize(221, 202) 16 | self.gridLayout = QtGui.QGridLayout(gravityForce) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.magnitudeLabel = QtGui.QLabel(gravityForce) 19 | self.magnitudeLabel.setObjectName("magnitudeLabel") 20 | self.gridLayout.addWidget(self.magnitudeLabel, 0, 0, 1, 1) 21 | self.attenuationLabel = QtGui.QLabel(gravityForce) 22 | self.attenuationLabel.setObjectName("attenuationLabel") 23 | self.gridLayout.addWidget(self.attenuationLabel, 1, 0, 1, 1) 24 | self.directionLabel = QtGui.QLabel(gravityForce) 25 | self.directionLabel.setObjectName("directionLabel") 26 | self.gridLayout.addWidget(self.directionLabel, 2, 0, 1, 2) 27 | self.directionX = QtGui.QDoubleSpinBox(gravityForce) 28 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 29 | sizePolicy.setHorizontalStretch(0) 30 | sizePolicy.setVerticalStretch(0) 31 | sizePolicy.setHeightForWidth(self.directionX.sizePolicy().hasHeightForWidth()) 32 | self.directionX.setSizePolicy(sizePolicy) 33 | self.directionX.setMinimum(-999999999.0) 34 | self.directionX.setMaximum(999999999.0) 35 | self.directionX.setSingleStep(0.01) 36 | self.directionX.setProperty("value", 0.0) 37 | self.directionX.setObjectName("directionX") 38 | self.gridLayout.addWidget(self.directionX, 3, 0, 1, 1) 39 | self.directionY = QtGui.QDoubleSpinBox(gravityForce) 40 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 41 | sizePolicy.setHorizontalStretch(0) 42 | sizePolicy.setVerticalStretch(0) 43 | sizePolicy.setHeightForWidth(self.directionY.sizePolicy().hasHeightForWidth()) 44 | self.directionY.setSizePolicy(sizePolicy) 45 | self.directionY.setMinimum(-999999999.0) 46 | self.directionY.setMaximum(999999999.0) 47 | self.directionY.setSingleStep(0.01) 48 | self.directionY.setProperty("value", -1.0) 49 | self.directionY.setObjectName("directionY") 50 | self.gridLayout.addWidget(self.directionY, 3, 1, 1, 2) 51 | self.directionZ = QtGui.QDoubleSpinBox(gravityForce) 52 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 53 | sizePolicy.setHorizontalStretch(0) 54 | sizePolicy.setVerticalStretch(0) 55 | sizePolicy.setHeightForWidth(self.directionZ.sizePolicy().hasHeightForWidth()) 56 | self.directionZ.setSizePolicy(sizePolicy) 57 | self.directionZ.setMinimum(-999999999.0) 58 | self.directionZ.setMaximum(999999999.0) 59 | self.directionZ.setSingleStep(0.01) 60 | self.directionZ.setProperty("value", 0.0) 61 | self.directionZ.setObjectName("directionZ") 62 | self.gridLayout.addWidget(self.directionZ, 3, 4, 1, 1) 63 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 64 | self.gridLayout.addItem(spacerItem, 1, 5, 1, 1) 65 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 66 | self.gridLayout.addItem(spacerItem1, 4, 1, 1, 1) 67 | self.magnitude = QtGui.QDoubleSpinBox(gravityForce) 68 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 69 | sizePolicy.setHorizontalStretch(0) 70 | sizePolicy.setVerticalStretch(0) 71 | sizePolicy.setHeightForWidth(self.magnitude.sizePolicy().hasHeightForWidth()) 72 | self.magnitude.setSizePolicy(sizePolicy) 73 | self.magnitude.setMinimum(-999999999.0) 74 | self.magnitude.setMaximum(999999999.0) 75 | self.magnitude.setProperty("value", 9.8) 76 | self.magnitude.setObjectName("magnitude") 77 | self.gridLayout.addWidget(self.magnitude, 0, 1, 1, 1) 78 | self.attenuation = QtGui.QDoubleSpinBox(gravityForce) 79 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 80 | sizePolicy.setHorizontalStretch(0) 81 | sizePolicy.setVerticalStretch(0) 82 | sizePolicy.setHeightForWidth(self.attenuation.sizePolicy().hasHeightForWidth()) 83 | self.attenuation.setSizePolicy(sizePolicy) 84 | self.attenuation.setObjectName("attenuation") 85 | self.gridLayout.addWidget(self.attenuation, 1, 1, 1, 1) 86 | 87 | self.retranslateUi(gravityForce) 88 | QtCore.QMetaObject.connectSlotsByName(gravityForce) 89 | 90 | def retranslateUi(self, gravityForce): 91 | gravityForce.setWindowTitle(QtGui.QApplication.translate("gravityForce", "Form", None, QtGui.QApplication.UnicodeUTF8)) 92 | self.magnitudeLabel.setText(QtGui.QApplication.translate("gravityForce", "Magnitude", None, QtGui.QApplication.UnicodeUTF8)) 93 | self.attenuationLabel.setText(QtGui.QApplication.translate("gravityForce", "Attenuation", None, QtGui.QApplication.UnicodeUTF8)) 94 | self.directionLabel.setText(QtGui.QApplication.translate("gravityForce", "Direction:", None, QtGui.QApplication.UnicodeUTF8)) 95 | 96 | -------------------------------------------------------------------------------- /ui/instancer.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'instancer.ui' 4 | # 5 | # Created: Mon Mar 12 14:16:45 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_instancer(object): 13 | def setupUi(self, instancer): 14 | instancer.setObjectName("instancer") 15 | instancer.resize(400, 494) 16 | self.gridLayout = QtGui.QGridLayout(instancer) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.rotAngleUnitsLabel = QtGui.QLabel(instancer) 19 | self.rotAngleUnitsLabel.setObjectName("rotAngleUnitsLabel") 20 | self.gridLayout.addWidget(self.rotAngleUnitsLabel, 0, 0, 1, 2) 21 | self.rotationAngleUnits = QtGui.QComboBox(instancer) 22 | self.rotationAngleUnits.setObjectName("rotationAngleUnits") 23 | self.rotationAngleUnits.addItem("") 24 | self.rotationAngleUnits.addItem("") 25 | self.gridLayout.addWidget(self.rotationAngleUnits, 0, 2, 1, 1) 26 | self.lodLabel = QtGui.QLabel(instancer) 27 | self.lodLabel.setObjectName("lodLabel") 28 | self.gridLayout.addWidget(self.lodLabel, 1, 0, 1, 1) 29 | self.levelOfDetail = QtGui.QComboBox(instancer) 30 | self.levelOfDetail.setObjectName("levelOfDetail") 31 | self.levelOfDetail.addItem("") 32 | self.levelOfDetail.addItem("") 33 | self.levelOfDetail.addItem("") 34 | self.gridLayout.addWidget(self.levelOfDetail, 1, 2, 1, 1) 35 | self.cycleLabel = QtGui.QLabel(instancer) 36 | self.cycleLabel.setObjectName("cycleLabel") 37 | self.gridLayout.addWidget(self.cycleLabel, 2, 0, 1, 1) 38 | self.cycle = QtGui.QComboBox(instancer) 39 | self.cycle.setObjectName("cycle") 40 | self.cycle.addItem("") 41 | self.cycle.addItem("") 42 | self.gridLayout.addWidget(self.cycle, 2, 2, 1, 1) 43 | self.cycleStepUnitLabel = QtGui.QLabel(instancer) 44 | self.cycleStepUnitLabel.setObjectName("cycleStepUnitLabel") 45 | self.gridLayout.addWidget(self.cycleStepUnitLabel, 3, 0, 1, 1) 46 | self.cycleStepUnit = QtGui.QComboBox(instancer) 47 | self.cycleStepUnit.setObjectName("cycleStepUnit") 48 | self.cycleStepUnit.addItem("") 49 | self.cycleStepUnit.addItem("") 50 | self.gridLayout.addWidget(self.cycleStepUnit, 3, 2, 1, 1) 51 | self.cycleStepLabel = QtGui.QLabel(instancer) 52 | self.cycleStepLabel.setObjectName("cycleStepLabel") 53 | self.gridLayout.addWidget(self.cycleStepLabel, 4, 0, 1, 1) 54 | self.cycleStep = QtGui.QDoubleSpinBox(instancer) 55 | self.cycleStep.setDecimals(3) 56 | self.cycleStep.setMinimum(1.0) 57 | self.cycleStep.setMaximum(1000000000.0) 58 | self.cycleStep.setProperty("value", 1.0) 59 | self.cycleStep.setObjectName("cycleStep") 60 | self.gridLayout.addWidget(self.cycleStep, 4, 2, 1, 1) 61 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 62 | self.gridLayout.addItem(spacerItem, 4, 3, 1, 1) 63 | self.instancedObjectsLabel = QtGui.QLabel(instancer) 64 | self.instancedObjectsLabel.setObjectName("instancedObjectsLabel") 65 | self.gridLayout.addWidget(self.instancedObjectsLabel, 5, 0, 1, 2) 66 | self.instancedObjects = QtGui.QListWidget(instancer) 67 | self.instancedObjects.setFrameShape(QtGui.QFrame.Box) 68 | self.instancedObjects.setFrameShadow(QtGui.QFrame.Sunken) 69 | self.instancedObjects.setProperty("isWrapping", True) 70 | self.instancedObjects.setObjectName("instancedObjects") 71 | self.gridLayout.addWidget(self.instancedObjects, 6, 0, 1, 3) 72 | self.instancerNameLabel1 = QtGui.QLabel(instancer) 73 | self.instancerNameLabel1.setObjectName("instancerNameLabel1") 74 | self.gridLayout.addWidget(self.instancerNameLabel1, 7, 0, 1, 1) 75 | self.instancerNameLabel = QtGui.QLineEdit(instancer) 76 | self.instancerNameLabel.setReadOnly(True) 77 | self.instancerNameLabel.setObjectName("instancerNameLabel") 78 | self.gridLayout.addWidget(self.instancerNameLabel, 7, 1, 1, 2) 79 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 80 | self.gridLayout.addItem(spacerItem1, 8, 0, 1, 1) 81 | 82 | self.retranslateUi(instancer) 83 | QtCore.QMetaObject.connectSlotsByName(instancer) 84 | 85 | def retranslateUi(self, instancer): 86 | instancer.setWindowTitle(QtGui.QApplication.translate("instancer", "Form", None, QtGui.QApplication.UnicodeUTF8)) 87 | self.rotAngleUnitsLabel.setText(QtGui.QApplication.translate("instancer", "Rotation Angle Units", None, QtGui.QApplication.UnicodeUTF8)) 88 | self.rotationAngleUnits.setItemText(0, QtGui.QApplication.translate("instancer", "Degrees", None, QtGui.QApplication.UnicodeUTF8)) 89 | self.rotationAngleUnits.setItemText(1, QtGui.QApplication.translate("instancer", "Radians", None, QtGui.QApplication.UnicodeUTF8)) 90 | self.lodLabel.setText(QtGui.QApplication.translate("instancer", "Level Of Detail", None, QtGui.QApplication.UnicodeUTF8)) 91 | self.levelOfDetail.setItemText(0, QtGui.QApplication.translate("instancer", "Geometry", None, QtGui.QApplication.UnicodeUTF8)) 92 | self.levelOfDetail.setItemText(1, QtGui.QApplication.translate("instancer", "BoundingBoxes", None, QtGui.QApplication.UnicodeUTF8)) 93 | self.levelOfDetail.setItemText(2, QtGui.QApplication.translate("instancer", "BoundingBox", None, QtGui.QApplication.UnicodeUTF8)) 94 | self.cycleLabel.setText(QtGui.QApplication.translate("instancer", "Cycle", None, QtGui.QApplication.UnicodeUTF8)) 95 | self.cycle.setItemText(0, QtGui.QApplication.translate("instancer", "None", None, QtGui.QApplication.UnicodeUTF8)) 96 | self.cycle.setItemText(1, QtGui.QApplication.translate("instancer", "Sequential", None, QtGui.QApplication.UnicodeUTF8)) 97 | self.cycleStepUnitLabel.setText(QtGui.QApplication.translate("instancer", "Cycle Step Unit", None, QtGui.QApplication.UnicodeUTF8)) 98 | self.cycleStepUnit.setItemText(0, QtGui.QApplication.translate("instancer", "Frames", None, QtGui.QApplication.UnicodeUTF8)) 99 | self.cycleStepUnit.setItemText(1, QtGui.QApplication.translate("instancer", "Seconds", None, QtGui.QApplication.UnicodeUTF8)) 100 | self.cycleStepLabel.setText(QtGui.QApplication.translate("instancer", "Cycle Step", None, QtGui.QApplication.UnicodeUTF8)) 101 | self.instancedObjectsLabel.setText(QtGui.QApplication.translate("instancer", "Instanced Objects:", None, QtGui.QApplication.UnicodeUTF8)) 102 | self.instancerNameLabel1.setText(QtGui.QApplication.translate("instancer", "Instancer Name:", None, QtGui.QApplication.UnicodeUTF8)) 103 | 104 | -------------------------------------------------------------------------------- /ui/lifeSpanAttrs.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'lifeSpanAttrs.ui' 4 | # 5 | # Created: Sun Mar 04 14:28:59 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_lifespanAttrWidget(object): 13 | def setupUi(self, lifespanAttrWidget): 14 | lifespanAttrWidget.setObjectName("lifespanAttrWidget") 15 | lifespanAttrWidget.resize(270, 224) 16 | self.gridLayout = QtGui.QGridLayout(lifespanAttrWidget) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.maxCountLabel = QtGui.QLabel(lifespanAttrWidget) 19 | self.maxCountLabel.setObjectName("maxCountLabel") 20 | self.gridLayout.addWidget(self.maxCountLabel, 0, 0, 1, 1) 21 | self.lifeSpanMode = QtGui.QComboBox(lifespanAttrWidget) 22 | self.lifeSpanMode.setObjectName("lifeSpanMode") 23 | self.lifeSpanMode.addItem("") 24 | self.lifeSpanMode.addItem("") 25 | self.lifeSpanMode.addItem("") 26 | self.lifeSpanMode.addItem("") 27 | self.gridLayout.addWidget(self.lifeSpanMode, 0, 1, 1, 1) 28 | self.levelOfDetailLabel = QtGui.QLabel(lifespanAttrWidget) 29 | self.levelOfDetailLabel.setObjectName("levelOfDetailLabel") 30 | self.gridLayout.addWidget(self.levelOfDetailLabel, 1, 0, 1, 1) 31 | self.lifeSpan = QtGui.QDoubleSpinBox(lifespanAttrWidget) 32 | self.lifeSpan.setDecimals(3) 33 | self.lifeSpan.setMaximum(1000000.0) 34 | self.lifeSpan.setProperty("value", 1.0) 35 | self.lifeSpan.setObjectName("lifeSpan") 36 | self.gridLayout.addWidget(self.lifeSpan, 1, 1, 1, 1) 37 | self.inheritFactorLabel = QtGui.QLabel(lifespanAttrWidget) 38 | self.inheritFactorLabel.setObjectName("inheritFactorLabel") 39 | self.gridLayout.addWidget(self.inheritFactorLabel, 2, 0, 1, 1) 40 | self.lifeSpanRandom = QtGui.QDoubleSpinBox(lifespanAttrWidget) 41 | self.lifeSpanRandom.setDecimals(3) 42 | self.lifeSpanRandom.setMaximum(1000000.0) 43 | self.lifeSpanRandom.setProperty("value", 0.0) 44 | self.lifeSpanRandom.setObjectName("lifeSpanRandom") 45 | self.gridLayout.addWidget(self.lifeSpanRandom, 2, 1, 1, 1) 46 | self.inheritFactorLabel_2 = QtGui.QLabel(lifespanAttrWidget) 47 | self.inheritFactorLabel_2.setObjectName("inheritFactorLabel_2") 48 | self.gridLayout.addWidget(self.inheritFactorLabel_2, 3, 0, 1, 1) 49 | self.generalSeed = QtGui.QDoubleSpinBox(lifespanAttrWidget) 50 | self.generalSeed.setDecimals(3) 51 | self.generalSeed.setMaximum(1000000.0) 52 | self.generalSeed.setProperty("value", 0.0) 53 | self.generalSeed.setObjectName("generalSeed") 54 | self.gridLayout.addWidget(self.generalSeed, 3, 1, 1, 1) 55 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 56 | self.gridLayout.addItem(spacerItem, 1, 2, 1, 1) 57 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 58 | self.gridLayout.addItem(spacerItem1, 4, 0, 1, 1) 59 | 60 | self.retranslateUi(lifespanAttrWidget) 61 | QtCore.QMetaObject.connectSlotsByName(lifespanAttrWidget) 62 | 63 | def retranslateUi(self, lifespanAttrWidget): 64 | lifespanAttrWidget.setWindowTitle(QtGui.QApplication.translate("lifespanAttrWidget", "Form", None, QtGui.QApplication.UnicodeUTF8)) 65 | self.maxCountLabel.setText(QtGui.QApplication.translate("lifespanAttrWidget", "Lifespan Mode", None, QtGui.QApplication.UnicodeUTF8)) 66 | self.lifeSpanMode.setItemText(0, QtGui.QApplication.translate("lifespanAttrWidget", "Live Forever", None, QtGui.QApplication.UnicodeUTF8)) 67 | self.lifeSpanMode.setItemText(1, QtGui.QApplication.translate("lifespanAttrWidget", "Constant", None, QtGui.QApplication.UnicodeUTF8)) 68 | self.lifeSpanMode.setItemText(2, QtGui.QApplication.translate("lifespanAttrWidget", "Random Range", None, QtGui.QApplication.UnicodeUTF8)) 69 | self.lifeSpanMode.setItemText(3, QtGui.QApplication.translate("lifespanAttrWidget", "lifespanPP only", None, QtGui.QApplication.UnicodeUTF8)) 70 | self.levelOfDetailLabel.setText(QtGui.QApplication.translate("lifespanAttrWidget", "Lifespan", None, QtGui.QApplication.UnicodeUTF8)) 71 | self.inheritFactorLabel.setText(QtGui.QApplication.translate("lifespanAttrWidget", "Lifespan Random", None, QtGui.QApplication.UnicodeUTF8)) 72 | self.inheritFactorLabel_2.setText(QtGui.QApplication.translate("lifespanAttrWidget", "General Seed", None, QtGui.QApplication.UnicodeUTF8)) 73 | 74 | -------------------------------------------------------------------------------- /ui/newtonForce.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'newtonForce.ui' 4 | # 5 | # Created: Sat Mar 17 16:21:54 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_newtonForce(object): 13 | def setupUi(self, newtonForce): 14 | newtonForce.setObjectName("newtonForce") 15 | newtonForce.resize(234, 181) 16 | self.gridLayout = QtGui.QGridLayout(newtonForce) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.magnitudeLabel = QtGui.QLabel(newtonForce) 19 | self.magnitudeLabel.setObjectName("magnitudeLabel") 20 | self.gridLayout.addWidget(self.magnitudeLabel, 0, 0, 1, 1) 21 | self.magnitude = QtGui.QDoubleSpinBox(newtonForce) 22 | self.magnitude.setMinimum(-999999999.0) 23 | self.magnitude.setMaximum(999999999.0) 24 | self.magnitude.setProperty("value", 5.0) 25 | self.magnitude.setObjectName("magnitude") 26 | self.gridLayout.addWidget(self.magnitude, 0, 1, 1, 1) 27 | self.attenuationLabel = QtGui.QLabel(newtonForce) 28 | self.attenuationLabel.setObjectName("attenuationLabel") 29 | self.gridLayout.addWidget(self.attenuationLabel, 1, 0, 1, 1) 30 | self.minDistance = QtGui.QDoubleSpinBox(newtonForce) 31 | self.minDistance.setMinimum(-999999999.0) 32 | self.minDistance.setMaximum(999999999.0) 33 | self.minDistance.setProperty("value", 1.0) 34 | self.minDistance.setObjectName("minDistance") 35 | self.gridLayout.addWidget(self.minDistance, 1, 1, 1, 1) 36 | self.minDistanceLabel = QtGui.QLabel(newtonForce) 37 | self.minDistanceLabel.setObjectName("minDistanceLabel") 38 | self.gridLayout.addWidget(self.minDistanceLabel, 2, 0, 1, 1) 39 | self.attenuation = QtGui.QDoubleSpinBox(newtonForce) 40 | self.attenuation.setMinimum(-999999999.0) 41 | self.attenuation.setMaximum(999999999.0) 42 | self.attenuation.setProperty("value", 0.2) 43 | self.attenuation.setObjectName("attenuation") 44 | self.gridLayout.addWidget(self.attenuation, 2, 1, 1, 1) 45 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 46 | self.gridLayout.addItem(spacerItem, 0, 2, 1, 1) 47 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 48 | self.gridLayout.addItem(spacerItem1, 3, 1, 1, 1) 49 | 50 | self.retranslateUi(newtonForce) 51 | QtCore.QMetaObject.connectSlotsByName(newtonForce) 52 | 53 | def retranslateUi(self, newtonForce): 54 | newtonForce.setWindowTitle(QtGui.QApplication.translate("newtonForce", "Form", None, QtGui.QApplication.UnicodeUTF8)) 55 | self.magnitudeLabel.setText(QtGui.QApplication.translate("newtonForce", "Magnitude", None, QtGui.QApplication.UnicodeUTF8)) 56 | self.attenuationLabel.setText(QtGui.QApplication.translate("newtonForce", "Attenuation", None, QtGui.QApplication.UnicodeUTF8)) 57 | self.minDistanceLabel.setText(QtGui.QApplication.translate("newtonForce", "Min Distance", None, QtGui.QApplication.UnicodeUTF8)) 58 | 59 | -------------------------------------------------------------------------------- /ui/objectUtil.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'objectUtil.ui' 4 | # 5 | # Created: Tue Mar 13 17:01:06 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_objectUtil(object): 13 | def setupUi(self, objectUtil): 14 | objectUtil.setObjectName("objectUtil") 15 | objectUtil.resize(186, 298) 16 | self.gridLayout = QtGui.QGridLayout(objectUtil) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.objectNameLabel = QtGui.QLabel(objectUtil) 19 | self.objectNameLabel.setObjectName("objectNameLabel") 20 | self.gridLayout.addWidget(self.objectNameLabel, 0, 0, 1, 3) 21 | self.translateLabel = QtGui.QLabel(objectUtil) 22 | self.translateLabel.setObjectName("translateLabel") 23 | self.gridLayout.addWidget(self.translateLabel, 2, 0, 1, 1) 24 | self.rotateLabel = QtGui.QLabel(objectUtil) 25 | self.rotateLabel.setObjectName("rotateLabel") 26 | self.gridLayout.addWidget(self.rotateLabel, 4, 0, 1, 1) 27 | self.scaleLabel = QtGui.QLabel(objectUtil) 28 | self.scaleLabel.setObjectName("scaleLabel") 29 | self.gridLayout.addWidget(self.scaleLabel, 6, 0, 1, 2) 30 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 31 | self.gridLayout.addItem(spacerItem, 3, 3, 1, 1) 32 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 33 | self.gridLayout.addItem(spacerItem1, 11, 1, 1, 1) 34 | self.pickObject = QtGui.QPushButton(objectUtil) 35 | self.pickObject.setCheckable(True) 36 | self.pickObject.setFlat(False) 37 | self.pickObject.setObjectName("pickObject") 38 | self.gridLayout.addWidget(self.pickObject, 8, 0, 1, 3) 39 | self.waitingLabel = QtGui.QLabel(objectUtil) 40 | self.waitingLabel.setObjectName("waitingLabel") 41 | self.gridLayout.addWidget(self.waitingLabel, 10, 0, 1, 3) 42 | self.scaleZ = QtGui.QLineEdit(objectUtil) 43 | self.scaleZ.setObjectName("scaleZ") 44 | self.gridLayout.addWidget(self.scaleZ, 7, 2, 1, 1) 45 | self.scaleY = QtGui.QLineEdit(objectUtil) 46 | self.scaleY.setObjectName("scaleY") 47 | self.gridLayout.addWidget(self.scaleY, 7, 1, 1, 1) 48 | self.rotateZ = QtGui.QLineEdit(objectUtil) 49 | self.rotateZ.setObjectName("rotateZ") 50 | self.gridLayout.addWidget(self.rotateZ, 5, 2, 1, 1) 51 | self.translateX = QtGui.QLineEdit(objectUtil) 52 | self.translateX.setObjectName("translateX") 53 | self.gridLayout.addWidget(self.translateX, 3, 0, 1, 1) 54 | self.rotateX = QtGui.QLineEdit(objectUtil) 55 | self.rotateX.setObjectName("rotateX") 56 | self.gridLayout.addWidget(self.rotateX, 5, 0, 1, 1) 57 | self.scaleX = QtGui.QLineEdit(objectUtil) 58 | self.scaleX.setObjectName("scaleX") 59 | self.gridLayout.addWidget(self.scaleX, 7, 0, 1, 1) 60 | self.translateZ = QtGui.QLineEdit(objectUtil) 61 | self.translateZ.setObjectName("translateZ") 62 | self.gridLayout.addWidget(self.translateZ, 3, 2, 1, 1) 63 | self.rotateY = QtGui.QLineEdit(objectUtil) 64 | self.rotateY.setObjectName("rotateY") 65 | self.gridLayout.addWidget(self.rotateY, 5, 1, 1, 1) 66 | self.translateY = QtGui.QLineEdit(objectUtil) 67 | self.translateY.setObjectName("translateY") 68 | self.gridLayout.addWidget(self.translateY, 3, 1, 1, 1) 69 | self.objName = QtGui.QLineEdit(objectUtil) 70 | self.objName.setObjectName("objName") 71 | self.gridLayout.addWidget(self.objName, 1, 0, 1, 3) 72 | self.clearObject = QtGui.QPushButton(objectUtil) 73 | self.clearObject.setObjectName("clearObject") 74 | self.gridLayout.addWidget(self.clearObject, 9, 0, 1, 3) 75 | 76 | self.retranslateUi(objectUtil) 77 | QtCore.QMetaObject.connectSlotsByName(objectUtil) 78 | 79 | def retranslateUi(self, objectUtil): 80 | objectUtil.setWindowTitle(QtGui.QApplication.translate("objectUtil", "Form", None, QtGui.QApplication.UnicodeUTF8)) 81 | self.objectNameLabel.setText(QtGui.QApplication.translate("objectUtil", "Object Name:", None, QtGui.QApplication.UnicodeUTF8)) 82 | self.translateLabel.setText(QtGui.QApplication.translate("objectUtil", "Translate:", None, QtGui.QApplication.UnicodeUTF8)) 83 | self.rotateLabel.setText(QtGui.QApplication.translate("objectUtil", "Rotate:", None, QtGui.QApplication.UnicodeUTF8)) 84 | self.scaleLabel.setText(QtGui.QApplication.translate("objectUtil", "Scale:", None, QtGui.QApplication.UnicodeUTF8)) 85 | self.pickObject.setText(QtGui.QApplication.translate("objectUtil", "Pick Object", None, QtGui.QApplication.UnicodeUTF8)) 86 | self.waitingLabel.setText(QtGui.QApplication.translate("objectUtil", "Awaiting selection from Maya...", None, QtGui.QApplication.UnicodeUTF8)) 87 | self.clearObject.setText(QtGui.QApplication.translate("objectUtil", "Clear Object", None, QtGui.QApplication.UnicodeUTF8)) 88 | 89 | -------------------------------------------------------------------------------- /ui/perParticleAttr.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'perParticleAttr.ui' 4 | # 5 | # Created: Sat Mar 10 19:23:03 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_perParticleAttr(object): 13 | def setupUi(self, perParticleAttr): 14 | perParticleAttr.setObjectName("perParticleAttr") 15 | perParticleAttr.resize(414, 601) 16 | self.gridLayout = QtGui.QGridLayout(perParticleAttr) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.evaluteExpressionLabel = QtGui.QLabel(perParticleAttr) 19 | self.evaluteExpressionLabel.setObjectName("evaluteExpressionLabel") 20 | self.gridLayout.addWidget(self.evaluteExpressionLabel, 0, 0, 1, 1) 21 | self.runExpression = QtGui.QComboBox(perParticleAttr) 22 | self.runExpression.setObjectName("runExpression") 23 | self.runExpression.addItem("") 24 | self.runExpression.addItem("") 25 | self.runExpression.addItem("") 26 | self.gridLayout.addWidget(self.runExpression, 1, 0, 1, 1) 27 | self.expressionLabel = QtGui.QLabel(perParticleAttr) 28 | self.expressionLabel.setObjectName("expressionLabel") 29 | self.gridLayout.addWidget(self.expressionLabel, 2, 0, 1, 1) 30 | self.particleAttrExpressions = QtGui.QStackedWidget(perParticleAttr) 31 | self.particleAttrExpressions.setObjectName("particleAttrExpressions") 32 | self.creationExpPage = QtGui.QWidget() 33 | self.creationExpPage.setObjectName("creationExpPage") 34 | self.verticalLayout = QtGui.QVBoxLayout(self.creationExpPage) 35 | self.verticalLayout.setObjectName("verticalLayout") 36 | self.particleAttrExpressions.addWidget(self.creationExpPage) 37 | self.gridLayout.addWidget(self.particleAttrExpressions, 3, 0, 1, 1) 38 | self.partAttrLabel = QtGui.QLabel(perParticleAttr) 39 | self.partAttrLabel.setObjectName("partAttrLabel") 40 | self.gridLayout.addWidget(self.partAttrLabel, 5, 0, 1, 1) 41 | spacerItem = QtGui.QSpacerItem(100, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 42 | self.gridLayout.addItem(spacerItem, 7, 1, 1, 1) 43 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 44 | self.gridLayout.addItem(spacerItem1, 13, 0, 1, 1) 45 | self.updateExpressionButton = QtGui.QPushButton(perParticleAttr) 46 | self.updateExpressionButton.setObjectName("updateExpressionButton") 47 | self.gridLayout.addWidget(self.updateExpressionButton, 12, 0, 1, 1) 48 | self.attrList = QtGui.QListWidget(perParticleAttr) 49 | self.attrList.setDragEnabled(True) 50 | self.attrList.setDragDropMode(QtGui.QAbstractItemView.DragOnly) 51 | self.attrList.setObjectName("attrList") 52 | QtGui.QListWidgetItem(self.attrList) 53 | QtGui.QListWidgetItem(self.attrList) 54 | QtGui.QListWidgetItem(self.attrList) 55 | QtGui.QListWidgetItem(self.attrList) 56 | QtGui.QListWidgetItem(self.attrList) 57 | QtGui.QListWidgetItem(self.attrList) 58 | QtGui.QListWidgetItem(self.attrList) 59 | self.gridLayout.addWidget(self.attrList, 6, 0, 1, 1) 60 | self.currentParticleShapeLabel = QtGui.QLabel(perParticleAttr) 61 | self.currentParticleShapeLabel.setObjectName("currentParticleShapeLabel") 62 | self.gridLayout.addWidget(self.currentParticleShapeLabel, 7, 0, 1, 1) 63 | self.currentParticleShape = QtGui.QLineEdit(perParticleAttr) 64 | self.currentParticleShape.setDragEnabled(True) 65 | self.currentParticleShape.setReadOnly(True) 66 | self.currentParticleShape.setObjectName("currentParticleShape") 67 | self.gridLayout.addWidget(self.currentParticleShape, 8, 0, 1, 1) 68 | 69 | self.retranslateUi(perParticleAttr) 70 | self.particleAttrExpressions.setCurrentIndex(0) 71 | QtCore.QObject.connect(self.runExpression, QtCore.SIGNAL("activated(int)"), self.particleAttrExpressions.setCurrentIndex) 72 | QtCore.QMetaObject.connectSlotsByName(perParticleAttr) 73 | 74 | def retranslateUi(self, perParticleAttr): 75 | perParticleAttr.setWindowTitle(QtGui.QApplication.translate("perParticleAttr", "Form", None, QtGui.QApplication.UnicodeUTF8)) 76 | self.evaluteExpressionLabel.setText(QtGui.QApplication.translate("perParticleAttr", "Evaluate expression:", None, QtGui.QApplication.UnicodeUTF8)) 77 | self.runExpression.setItemText(0, QtGui.QApplication.translate("perParticleAttr", "At Creation", None, QtGui.QApplication.UnicodeUTF8)) 78 | self.runExpression.setItemText(1, QtGui.QApplication.translate("perParticleAttr", "Before Dynamics", None, QtGui.QApplication.UnicodeUTF8)) 79 | self.runExpression.setItemText(2, QtGui.QApplication.translate("perParticleAttr", "After Dynamics", None, QtGui.QApplication.UnicodeUTF8)) 80 | self.expressionLabel.setText(QtGui.QApplication.translate("perParticleAttr", "Expression:", None, QtGui.QApplication.UnicodeUTF8)) 81 | self.partAttrLabel.setText(QtGui.QApplication.translate("perParticleAttr", "Particle Attributes:", None, QtGui.QApplication.UnicodeUTF8)) 82 | self.updateExpressionButton.setText(QtGui.QApplication.translate("perParticleAttr", "Update Expression", None, QtGui.QApplication.UnicodeUTF8)) 83 | __sortingEnabled = self.attrList.isSortingEnabled() 84 | self.attrList.setSortingEnabled(False) 85 | self.attrList.item(0).setText(QtGui.QApplication.translate("perParticleAttr", "position", None, QtGui.QApplication.UnicodeUTF8)) 86 | self.attrList.item(1).setText(QtGui.QApplication.translate("perParticleAttr", "velocity", None, QtGui.QApplication.UnicodeUTF8)) 87 | self.attrList.item(2).setText(QtGui.QApplication.translate("perParticleAttr", "acceleration", None, QtGui.QApplication.UnicodeUTF8)) 88 | self.attrList.item(3).setText(QtGui.QApplication.translate("perParticleAttr", "mass", None, QtGui.QApplication.UnicodeUTF8)) 89 | self.attrList.item(4).setText(QtGui.QApplication.translate("perParticleAttr", "opacityPP", None, QtGui.QApplication.UnicodeUTF8)) 90 | self.attrList.item(5).setText(QtGui.QApplication.translate("perParticleAttr", "lifespanPP", None, QtGui.QApplication.UnicodeUTF8)) 91 | self.attrList.item(6).setText(QtGui.QApplication.translate("perParticleAttr", "rgbPP", None, QtGui.QApplication.UnicodeUTF8)) 92 | self.attrList.setSortingEnabled(__sortingEnabled) 93 | self.currentParticleShapeLabel.setText(QtGui.QApplication.translate("perParticleAttr", "ParticleShape: ", None, QtGui.QApplication.UnicodeUTF8)) 94 | self.currentParticleShape.setText(QtGui.QApplication.translate("perParticleAttr", "None", None, QtGui.QApplication.UnicodeUTF8)) 95 | 96 | -------------------------------------------------------------------------------- /ui/renderStats.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'renderStats.ui' 4 | # 5 | # Created: Sun Mar 04 14:38:51 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_renderStats(object): 13 | def setupUi(self, renderStats): 14 | renderStats.setObjectName("renderStats") 15 | renderStats.resize(251, 300) 16 | self.gridLayout = QtGui.QGridLayout(renderStats) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.visibleInReflections = QtGui.QCheckBox(renderStats) 19 | self.visibleInReflections.setObjectName("visibleInReflections") 20 | self.gridLayout.addWidget(self.visibleInReflections, 0, 0, 1, 1) 21 | self.visibleInRefractions = QtGui.QCheckBox(renderStats) 22 | self.visibleInRefractions.setObjectName("visibleInRefractions") 23 | self.gridLayout.addWidget(self.visibleInRefractions, 1, 0, 1, 1) 24 | self.castsShadows = QtGui.QCheckBox(renderStats) 25 | self.castsShadows.setChecked(True) 26 | self.castsShadows.setObjectName("castsShadows") 27 | self.gridLayout.addWidget(self.castsShadows, 2, 0, 1, 1) 28 | self.receiveShadows = QtGui.QCheckBox(renderStats) 29 | self.receiveShadows.setChecked(True) 30 | self.receiveShadows.setObjectName("receiveShadows") 31 | self.gridLayout.addWidget(self.receiveShadows, 3, 0, 1, 1) 32 | self.primaryVisibility = QtGui.QCheckBox(renderStats) 33 | self.primaryVisibility.setChecked(True) 34 | self.primaryVisibility.setObjectName("primaryVisibility") 35 | self.gridLayout.addWidget(self.primaryVisibility, 5, 0, 1, 1) 36 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 37 | self.gridLayout.addItem(spacerItem, 1, 1, 1, 1) 38 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 39 | self.gridLayout.addItem(spacerItem1, 6, 0, 1, 1) 40 | self.motionBlur = QtGui.QCheckBox(renderStats) 41 | self.motionBlur.setChecked(True) 42 | self.motionBlur.setObjectName("motionBlur") 43 | self.gridLayout.addWidget(self.motionBlur, 4, 0, 1, 1) 44 | 45 | self.retranslateUi(renderStats) 46 | QtCore.QMetaObject.connectSlotsByName(renderStats) 47 | 48 | def retranslateUi(self, renderStats): 49 | renderStats.setWindowTitle(QtGui.QApplication.translate("renderStats", "Form", None, QtGui.QApplication.UnicodeUTF8)) 50 | self.visibleInReflections.setText(QtGui.QApplication.translate("renderStats", "Visible in Reflections", None, QtGui.QApplication.UnicodeUTF8)) 51 | self.visibleInRefractions.setText(QtGui.QApplication.translate("renderStats", "Visible in Refractions", None, QtGui.QApplication.UnicodeUTF8)) 52 | self.castsShadows.setText(QtGui.QApplication.translate("renderStats", "Casts Shadows", None, QtGui.QApplication.UnicodeUTF8)) 53 | self.receiveShadows.setText(QtGui.QApplication.translate("renderStats", "Receive Shadows", None, QtGui.QApplication.UnicodeUTF8)) 54 | self.primaryVisibility.setText(QtGui.QApplication.translate("renderStats", "Primary Visibility", None, QtGui.QApplication.UnicodeUTF8)) 55 | self.motionBlur.setText(QtGui.QApplication.translate("renderStats", "Motion Blur", None, QtGui.QApplication.UnicodeUTF8)) 56 | 57 | -------------------------------------------------------------------------------- /ui/testWidgetUI.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'testWidget.ui' 4 | # 5 | # Created: Wed Feb 29 16:50:14 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_Form(object): 13 | def setupUi(self, Form): 14 | Form.setObjectName("Form") 15 | Form.resize(411, 347) 16 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 17 | sizePolicy.setHorizontalStretch(0) 18 | sizePolicy.setVerticalStretch(0) 19 | sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth()) 20 | Form.setSizePolicy(sizePolicy) 21 | self.gridLayout = QtGui.QGridLayout(Form) 22 | self.gridLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint) 23 | self.gridLayout.setObjectName("gridLayout") 24 | self.label = QtGui.QLabel(Form) 25 | self.label.setObjectName("label") 26 | self.gridLayout.addWidget(self.label, 0, 0, 1, 1) 27 | self.spinBox = QtGui.QSpinBox(Form) 28 | self.spinBox.setObjectName("spinBox") 29 | self.gridLayout.addWidget(self.spinBox, 0, 1, 1, 1) 30 | self.radioButton = QtGui.QRadioButton(Form) 31 | self.radioButton.setObjectName("radioButton") 32 | self.gridLayout.addWidget(self.radioButton, 1, 1, 1, 1) 33 | self.radioButton_2 = QtGui.QRadioButton(Form) 34 | self.radioButton_2.setObjectName("radioButton_2") 35 | self.gridLayout.addWidget(self.radioButton_2, 2, 1, 1, 1) 36 | self.radioButton_3 = QtGui.QRadioButton(Form) 37 | self.radioButton_3.setObjectName("radioButton_3") 38 | self.gridLayout.addWidget(self.radioButton_3, 3, 1, 1, 1) 39 | self.checkBox = QtGui.QCheckBox(Form) 40 | self.checkBox.setObjectName("checkBox") 41 | self.gridLayout.addWidget(self.checkBox, 4, 1, 1, 1) 42 | self.pushButton = QtGui.QPushButton(Form) 43 | self.pushButton.setObjectName("pushButton") 44 | self.gridLayout.addWidget(self.pushButton, 5, 1, 1, 1) 45 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 46 | self.gridLayout.addItem(spacerItem, 6, 1, 1, 1) 47 | 48 | self.retranslateUi(Form) 49 | QtCore.QMetaObject.connectSlotsByName(Form) 50 | 51 | def retranslateUi(self, Form): 52 | Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8)) 53 | self.label.setText(QtGui.QApplication.translate("Form", "Text Label: ", None, QtGui.QApplication.UnicodeUTF8)) 54 | self.radioButton.setText(QtGui.QApplication.translate("Form", "RadioButton", None, QtGui.QApplication.UnicodeUTF8)) 55 | self.radioButton_2.setText(QtGui.QApplication.translate("Form", "RadioButton", None, QtGui.QApplication.UnicodeUTF8)) 56 | self.radioButton_3.setText(QtGui.QApplication.translate("Form", "RadioButton", None, QtGui.QApplication.UnicodeUTF8)) 57 | self.checkBox.setText(QtGui.QApplication.translate("Form", "CheckBox", None, QtGui.QApplication.UnicodeUTF8)) 58 | self.pushButton.setText(QtGui.QApplication.translate("Form", "PushButton", None, QtGui.QApplication.UnicodeUTF8)) 59 | 60 | -------------------------------------------------------------------------------- /ui/timeAttrs.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'timeAttrs.ui' 4 | # 5 | # Created: Fri Mar 09 14:48:53 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_timeAttrs(object): 13 | def setupUi(self, timeAttrs): 14 | timeAttrs.setObjectName("timeAttrs") 15 | timeAttrs.resize(305, 201) 16 | self.gridLayout = QtGui.QGridLayout(timeAttrs) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.startFrameLabel = QtGui.QLabel(timeAttrs) 19 | self.startFrameLabel.setObjectName("startFrameLabel") 20 | self.gridLayout.addWidget(self.startFrameLabel, 0, 0, 1, 1) 21 | self.startFrame = QtGui.QDoubleSpinBox(timeAttrs) 22 | self.startFrame.setDecimals(3) 23 | self.startFrame.setMinimum(-1000000000.0) 24 | self.startFrame.setMaximum(1000000000.0) 25 | self.startFrame.setProperty("value", 1.0) 26 | self.startFrame.setObjectName("startFrame") 27 | self.gridLayout.addWidget(self.startFrame, 0, 1, 2, 1) 28 | self.currentFrameLabel = QtGui.QLabel(timeAttrs) 29 | self.currentFrameLabel.setObjectName("currentFrameLabel") 30 | self.gridLayout.addWidget(self.currentFrameLabel, 1, 0, 2, 1) 31 | spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 32 | self.gridLayout.addItem(spacerItem, 3, 1, 1, 1) 33 | spacerItem1 = QtGui.QSpacerItem(200, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 34 | self.gridLayout.addItem(spacerItem1, 2, 2, 1, 1) 35 | self.currentFrame = QtGui.QLineEdit(timeAttrs) 36 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 37 | sizePolicy.setHorizontalStretch(0) 38 | sizePolicy.setVerticalStretch(0) 39 | sizePolicy.setHeightForWidth(self.currentFrame.sizePolicy().hasHeightForWidth()) 40 | self.currentFrame.setSizePolicy(sizePolicy) 41 | self.currentFrame.setMinimumSize(QtCore.QSize(0, 0)) 42 | self.currentFrame.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter) 43 | self.currentFrame.setReadOnly(True) 44 | self.currentFrame.setObjectName("currentFrame") 45 | self.gridLayout.addWidget(self.currentFrame, 2, 1, 1, 1) 46 | 47 | self.retranslateUi(timeAttrs) 48 | QtCore.QMetaObject.connectSlotsByName(timeAttrs) 49 | 50 | def retranslateUi(self, timeAttrs): 51 | timeAttrs.setWindowTitle(QtGui.QApplication.translate("timeAttrs", "Form", None, QtGui.QApplication.UnicodeUTF8)) 52 | self.startFrameLabel.setText(QtGui.QApplication.translate("timeAttrs", "Start Frame", None, QtGui.QApplication.UnicodeUTF8)) 53 | self.currentFrameLabel.setText(QtGui.QApplication.translate("timeAttrs", "Current Frame", None, QtGui.QApplication.UnicodeUTF8)) 54 | self.currentFrame.setText(QtGui.QApplication.translate("timeAttrs", "1", None, QtGui.QApplication.UnicodeUTF8)) 55 | 56 | -------------------------------------------------------------------------------- /ui/userListModule.py: -------------------------------------------------------------------------------- 1 | from PyQt4.QtGui import * 2 | from PyQt4.QtCore import * 3 | import cPickle, weakref 4 | import nodeModule, mayaNodesModule 5 | 6 | class ListBaseClass(QListWidget): 7 | 8 | d = weakref.WeakValueDictionary() 9 | 10 | def __init__(self, *args, **kwargs): 11 | super(ListBaseClass, self).__init__(*args, **kwargs) 12 | 13 | self.setLayout(QHBoxLayout()) 14 | self.setWrapping(True) 15 | self.setLayoutMode(QListView.SinglePass) 16 | self.setDragEnabled(True) 17 | self.setSpacing(1.5) 18 | self.setGeometry(9, 9, 608, 193) 19 | 20 | self.listName = "" 21 | 22 | def populateListWidget(self, listItems): 23 | 24 | for key in sorted(listItems.iterkeys()): 25 | if listItems[key].nodeType == "category" and listItems[key].listWidgetName == self.listName: 26 | self.addItem(nodeModule.NodeListItem(listItems[key])) 27 | 28 | for key in sorted(listItems.iterkeys()): 29 | if listItems[key].nodeType == "attribute" and listItems[key].listWidgetName == self.listName: 30 | self.addItem(nodeModule.NodeListItem(listItems[key])) 31 | elif listItems[key].nodeType == "utility" and listItems[key].listWidgetName == self.listName: 32 | self.addItem(nodeModule.NodeListItem(listItems[key])) 33 | 34 | def startDrag(self, event): 35 | # item is of type NodeListItem 36 | item = self.currentItem() 37 | # nodeData is the data (NodeBase type) that item was created with 38 | nodeData = mayaNodesModule.MayaNodes[item.dictKey] 39 | 40 | i = id(nodeData) 41 | self.d[i] = nodeData 42 | pickleData = cPickle.dumps(i) 43 | # pickleData = cPickle.dumps(nodeData) 44 | data = QByteArray.fromRawData(pickleData) 45 | 46 | mimeData = QMimeData() 47 | mimeData.setData("application/x-imgname", data) 48 | 49 | drag = QDrag(self) 50 | drag.setMimeData(mimeData) 51 | 52 | # Setting the icon that the mouse cursor displays 53 | icon = item.icon() 54 | pixmap = icon.pixmap(48, 48) 55 | drag.setPixmap(pixmap.scaled(pixmap.height()*.5, pixmap.width()*.5)) 56 | # Actually starts the dragging 57 | drag.exec_() -------------------------------------------------------------------------------- /ui/volSpeedAttr.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'volSpeedAttr.ui' 4 | # 5 | # Created: Fri Mar 09 19:20:07 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_volSpeedAttr(object): 13 | def setupUi(self, volSpeedAttr): 14 | volSpeedAttr.setObjectName("volSpeedAttr") 15 | volSpeedAttr.resize(251, 300) 16 | self.gridLayout = QtGui.QGridLayout(volSpeedAttr) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.awayFromCenterLabel = QtGui.QLabel(volSpeedAttr) 19 | self.awayFromCenterLabel.setObjectName("awayFromCenterLabel") 20 | self.gridLayout.addWidget(self.awayFromCenterLabel, 0, 0, 1, 1) 21 | self.awayFromCenter = QtGui.QDoubleSpinBox(volSpeedAttr) 22 | self.awayFromCenter.setDecimals(3) 23 | self.awayFromCenter.setMinimum(-1000000000.0) 24 | self.awayFromCenter.setMaximum(1000000000.0) 25 | self.awayFromCenter.setProperty("value", 1.0) 26 | self.awayFromCenter.setObjectName("awayFromCenter") 27 | self.gridLayout.addWidget(self.awayFromCenter, 0, 2, 1, 1) 28 | self.awayFromAxisLabel = QtGui.QLabel(volSpeedAttr) 29 | self.awayFromAxisLabel.setObjectName("awayFromAxisLabel") 30 | self.gridLayout.addWidget(self.awayFromAxisLabel, 1, 0, 1, 1) 31 | self.alongAxisLabel = QtGui.QLabel(volSpeedAttr) 32 | self.alongAxisLabel.setObjectName("alongAxisLabel") 33 | self.gridLayout.addWidget(self.alongAxisLabel, 3, 0, 1, 2) 34 | self.aroundAxisLabel = QtGui.QLabel(volSpeedAttr) 35 | self.aroundAxisLabel.setObjectName("aroundAxisLabel") 36 | self.gridLayout.addWidget(self.aroundAxisLabel, 4, 0, 1, 1) 37 | self.aroundAxis = QtGui.QDoubleSpinBox(volSpeedAttr) 38 | self.aroundAxis.setDecimals(3) 39 | self.aroundAxis.setMinimum(-1000000000.0) 40 | self.aroundAxis.setMaximum(1000000000.0) 41 | self.aroundAxis.setObjectName("aroundAxis") 42 | self.gridLayout.addWidget(self.aroundAxis, 4, 2, 1, 1) 43 | self.randomDirectionLabel = QtGui.QLabel(volSpeedAttr) 44 | self.randomDirectionLabel.setObjectName("randomDirectionLabel") 45 | self.gridLayout.addWidget(self.randomDirectionLabel, 5, 0, 1, 2) 46 | self.randomDirection = QtGui.QDoubleSpinBox(volSpeedAttr) 47 | self.randomDirection.setDecimals(3) 48 | self.randomDirection.setMinimum(-1000000000.0) 49 | self.randomDirection.setMaximum(1000000000.0) 50 | self.randomDirection.setObjectName("randomDirection") 51 | self.gridLayout.addWidget(self.randomDirection, 5, 2, 1, 1) 52 | self.directionalSpeedLabel = QtGui.QLabel(volSpeedAttr) 53 | self.directionalSpeedLabel.setObjectName("directionalSpeedLabel") 54 | self.gridLayout.addWidget(self.directionalSpeedLabel, 6, 0, 1, 1) 55 | self.directionalSpeed = QtGui.QDoubleSpinBox(volSpeedAttr) 56 | self.directionalSpeed.setDecimals(3) 57 | self.directionalSpeed.setMinimum(-1000000000.0) 58 | self.directionalSpeed.setMaximum(1000000000.0) 59 | self.directionalSpeed.setObjectName("directionalSpeed") 60 | self.gridLayout.addWidget(self.directionalSpeed, 6, 2, 1, 1) 61 | self.scaleSpeedBySize = QtGui.QCheckBox(volSpeedAttr) 62 | self.scaleSpeedBySize.setObjectName("scaleSpeedBySize") 63 | self.gridLayout.addWidget(self.scaleSpeedBySize, 7, 0, 1, 3) 64 | self.displaySpeed = QtGui.QCheckBox(volSpeedAttr) 65 | self.displaySpeed.setChecked(True) 66 | self.displaySpeed.setObjectName("displaySpeed") 67 | self.gridLayout.addWidget(self.displaySpeed, 8, 0, 1, 3) 68 | self.alongAxis = QtGui.QDoubleSpinBox(volSpeedAttr) 69 | self.alongAxis.setDecimals(3) 70 | self.alongAxis.setMinimum(-1000000000.0) 71 | self.alongAxis.setMaximum(1000000000.0) 72 | self.alongAxis.setObjectName("alongAxis") 73 | self.gridLayout.addWidget(self.alongAxis, 3, 2, 1, 1) 74 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 75 | self.gridLayout.addItem(spacerItem, 3, 3, 1, 1) 76 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 77 | self.gridLayout.addItem(spacerItem1, 9, 0, 1, 1) 78 | self.awayFromAxis = QtGui.QDoubleSpinBox(volSpeedAttr) 79 | self.awayFromAxis.setDecimals(3) 80 | self.awayFromAxis.setMinimum(-1000000000.0) 81 | self.awayFromAxis.setMaximum(1000000000.0) 82 | self.awayFromAxis.setProperty("value", 1.0) 83 | self.awayFromAxis.setObjectName("awayFromAxis") 84 | self.gridLayout.addWidget(self.awayFromAxis, 1, 2, 1, 1) 85 | 86 | self.retranslateUi(volSpeedAttr) 87 | QtCore.QMetaObject.connectSlotsByName(volSpeedAttr) 88 | 89 | def retranslateUi(self, volSpeedAttr): 90 | volSpeedAttr.setWindowTitle(QtGui.QApplication.translate("volSpeedAttr", "Form", None, QtGui.QApplication.UnicodeUTF8)) 91 | self.awayFromCenterLabel.setText(QtGui.QApplication.translate("volSpeedAttr", "Away From Center", None, QtGui.QApplication.UnicodeUTF8)) 92 | self.awayFromAxisLabel.setText(QtGui.QApplication.translate("volSpeedAttr", "Away From Axis", None, QtGui.QApplication.UnicodeUTF8)) 93 | self.alongAxisLabel.setText(QtGui.QApplication.translate("volSpeedAttr", "Along Axis", None, QtGui.QApplication.UnicodeUTF8)) 94 | self.aroundAxisLabel.setText(QtGui.QApplication.translate("volSpeedAttr", "Around Axis", None, QtGui.QApplication.UnicodeUTF8)) 95 | self.randomDirectionLabel.setText(QtGui.QApplication.translate("volSpeedAttr", "Random Direction", None, QtGui.QApplication.UnicodeUTF8)) 96 | self.directionalSpeedLabel.setText(QtGui.QApplication.translate("volSpeedAttr", "Directional Speed", None, QtGui.QApplication.UnicodeUTF8)) 97 | self.scaleSpeedBySize.setText(QtGui.QApplication.translate("volSpeedAttr", "Scale Speed by Size", None, QtGui.QApplication.UnicodeUTF8)) 98 | self.displaySpeed.setText(QtGui.QApplication.translate("volSpeedAttr", "Display Speed", None, QtGui.QApplication.UnicodeUTF8)) 99 | 100 | -------------------------------------------------------------------------------- /ui/vortexForce.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Form implementation generated from reading ui file 'vortexForce.ui' 4 | # 5 | # Created: Sat Mar 17 16:35:53 2012 6 | # by: PyQt4 UI code generator 4.7.3 7 | # 8 | # WARNING! All changes made in this file will be lost! 9 | 10 | from PyQt4 import QtCore, QtGui 11 | 12 | class Ui_vortexForce(object): 13 | def setupUi(self, vortexForce): 14 | vortexForce.setObjectName("vortexForce") 15 | vortexForce.resize(289, 221) 16 | self.gridLayout = QtGui.QGridLayout(vortexForce) 17 | self.gridLayout.setObjectName("gridLayout") 18 | self.magnitudeLabel = QtGui.QLabel(vortexForce) 19 | self.magnitudeLabel.setObjectName("magnitudeLabel") 20 | self.gridLayout.addWidget(self.magnitudeLabel, 0, 0, 1, 1) 21 | self.magnitude = QtGui.QDoubleSpinBox(vortexForce) 22 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 23 | sizePolicy.setHorizontalStretch(0) 24 | sizePolicy.setVerticalStretch(0) 25 | sizePolicy.setHeightForWidth(self.magnitude.sizePolicy().hasHeightForWidth()) 26 | self.magnitude.setSizePolicy(sizePolicy) 27 | self.magnitude.setMinimum(-999999999.0) 28 | self.magnitude.setMaximum(999999999.0) 29 | self.magnitude.setProperty("value", 5.0) 30 | self.magnitude.setObjectName("magnitude") 31 | self.gridLayout.addWidget(self.magnitude, 0, 1, 1, 1) 32 | self.attenuationLabel = QtGui.QLabel(vortexForce) 33 | self.attenuationLabel.setObjectName("attenuationLabel") 34 | self.gridLayout.addWidget(self.attenuationLabel, 1, 0, 1, 1) 35 | self.attenuation = QtGui.QDoubleSpinBox(vortexForce) 36 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 37 | sizePolicy.setHorizontalStretch(0) 38 | sizePolicy.setVerticalStretch(0) 39 | sizePolicy.setHeightForWidth(self.attenuation.sizePolicy().hasHeightForWidth()) 40 | self.attenuation.setSizePolicy(sizePolicy) 41 | self.attenuation.setMinimum(-999999999.0) 42 | self.attenuation.setMaximum(999999999.0) 43 | self.attenuation.setProperty("value", 1.0) 44 | self.attenuation.setObjectName("attenuation") 45 | self.gridLayout.addWidget(self.attenuation, 1, 1, 1, 1) 46 | self.axisLabel = QtGui.QLabel(vortexForce) 47 | self.axisLabel.setObjectName("axisLabel") 48 | self.gridLayout.addWidget(self.axisLabel, 2, 0, 1, 1) 49 | self.axisX = QtGui.QDoubleSpinBox(vortexForce) 50 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 51 | sizePolicy.setHorizontalStretch(0) 52 | sizePolicy.setVerticalStretch(0) 53 | sizePolicy.setHeightForWidth(self.axisX.sizePolicy().hasHeightForWidth()) 54 | self.axisX.setSizePolicy(sizePolicy) 55 | self.axisX.setMinimum(-999999999.0) 56 | self.axisX.setMaximum(999999999.0) 57 | self.axisX.setObjectName("axisX") 58 | self.gridLayout.addWidget(self.axisX, 3, 0, 1, 1) 59 | self.axisY = QtGui.QDoubleSpinBox(vortexForce) 60 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 61 | sizePolicy.setHorizontalStretch(0) 62 | sizePolicy.setVerticalStretch(0) 63 | sizePolicy.setHeightForWidth(self.axisY.sizePolicy().hasHeightForWidth()) 64 | self.axisY.setSizePolicy(sizePolicy) 65 | self.axisY.setMinimum(-999999999.0) 66 | self.axisY.setMaximum(999999999.0) 67 | self.axisY.setProperty("value", 1.0) 68 | self.axisY.setObjectName("axisY") 69 | self.gridLayout.addWidget(self.axisY, 3, 1, 1, 1) 70 | self.axisZ = QtGui.QDoubleSpinBox(vortexForce) 71 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) 72 | sizePolicy.setHorizontalStretch(0) 73 | sizePolicy.setVerticalStretch(0) 74 | sizePolicy.setHeightForWidth(self.axisZ.sizePolicy().hasHeightForWidth()) 75 | self.axisZ.setSizePolicy(sizePolicy) 76 | self.axisZ.setMinimum(-999999999.0) 77 | self.axisZ.setMaximum(999999999.0) 78 | self.axisZ.setObjectName("axisZ") 79 | self.gridLayout.addWidget(self.axisZ, 3, 2, 1, 1) 80 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 81 | self.gridLayout.addItem(spacerItem, 3, 3, 1, 1) 82 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) 83 | self.gridLayout.addItem(spacerItem1, 4, 2, 1, 1) 84 | 85 | self.retranslateUi(vortexForce) 86 | QtCore.QMetaObject.connectSlotsByName(vortexForce) 87 | 88 | def retranslateUi(self, vortexForce): 89 | vortexForce.setWindowTitle(QtGui.QApplication.translate("vortexForce", "Form", None, QtGui.QApplication.UnicodeUTF8)) 90 | self.magnitudeLabel.setText(QtGui.QApplication.translate("vortexForce", "Magnitude", None, QtGui.QApplication.UnicodeUTF8)) 91 | self.attenuationLabel.setText(QtGui.QApplication.translate("vortexForce", "Attenuation", None, QtGui.QApplication.UnicodeUTF8)) 92 | self.axisLabel.setText(QtGui.QApplication.translate("vortexForce", "Axis:", None, QtGui.QApplication.UnicodeUTF8)) 93 | 94 | --------------------------------------------------------------------------------