Пример #1
0
def _saveNetworkClicked():
    from coral import coralApp
    from coral.coralUi.mainWindow import MainWindow
    
    filename = MainWindow.saveFileDialog("save network file", "Coral Network (*.crl)")
    if filename:
        coralApp.saveNetworkFile(filename)
Пример #2
0
def _saveAsNetworkClicked():
    from coral import coralApp
    from coral.coralUi.mainWindow import MainWindow
    
    filename = MainWindow.saveFileDialog("save network file", "Coral Network (*.crl)")
    if filename:
        coralApp.saveNetworkFile(filename)
Пример #3
0
def _saveCollapsedNodeClicked():
    from coral import coralApp
    from coral.coralUi.mainWindow import MainWindow
    from coral.coralUi.nodeEditor.nodeEditor import NodeEditor
    
    filename = MainWindow.saveFileDialog("save collapsed node", "Coral CollapsedNode (*.py)")
    sel = NodeEditor.selectedNodes()
    if filename and sel:
        coralApp.saveCollapsedNodeFile(sel[0], filename)
Пример #4
0
def _saveNetworkClicked():
    from coral import coralApp
    from coral.coralUi.mainWindow import MainWindow

    filename = coralApp.CoralAppData.currentNetworkDir
    if filename == "":
        filename = MainWindow.saveFileDialog("save network file", "Coral Network (*.crl)")
    if filename:
        coralApp.saveNetworkFile(filename)
Пример #5
0
def _saveCollapsedNodeClicked():
    from coral import coralApp
    from coral.coralUi.mainWindow import MainWindow
    from coral.coralUi.nodeEditor.nodeEditor import NodeEditor
    
    filename = MainWindow.saveFileDialog("save collapsed node", "Coral CollapsedNode (*.py)")
    sel = NodeEditor.selectedNodes()
    if filename and sel:
        coralApp.saveCollapsedNodeFile(sel[0], filename)