Just started looking into natron (RC2 now) and I find it quite cool.
I want to start creating custom things, therefore I've been looking into the api docs, but I fear I've missed something.
What I'm after is to have a node that expose a custom widget as parameters ( So I can write it in python directly)
For what I understand , creating a new PyPanel allowes you to then use the result widget as any other param.
so I did try and failed, here what I did.
This is mypane.py in pythonpath`:
from PySide.QtGui import *
from PySide.QtCore import *
from NatronGui import *
def __init__(self, scriptName, label, app):
super(MyPanel, self).__init__(scriptName, label, False, app)
self.currentApp = app
layout = QVBoxLayout()
and this is the content of my custom node:
from mypane import MyPanel
return 'some sort of plugin'
def createInstance(app, group):
panel = PublishPane("a.test.mypanel", "mypanel", app)
But when I go create the node, natron segfault.
should be the panel get registered before using it ?
If so , should it be registered at the startup in the initGui.py script ?
overall, any hint ?
Thanks a bunch !