PDA

View Full Version : Does LWPy have access to NodeEditor?



Styler
12-12-2012, 08:59 AM
I looked into LWNodeEditorFuncs class and it has all methods of None type. I guess that is a bug/unimplemented. I'm right? May be is exist another way to manage nodes?

here is a log for


neFunc = lwsdk.LWNodeEditorFuncs()
for i in dir(neFunc):
print 'member: %s'%i
exec('print neFunc.%s'%i)
print '------'




------
member: __swig_getmethods__
{'rename': <built-in function LWNodeEditorFuncs_rename_get>, 'load': <built-in function LWNodeEditorFuncs_load_get>, 'setAutosize': <built-in function LWNodeEditorFuncs_setAutosize_get>, 'remInput': <built-in function LWNodeEditorFuncs_remInput_get>, 'getInputByName': <built-in function LWNodeEditorFuncs_getInputByName_get>, 'connect': <built-in function LWNodeEditorFuncs_connect_get>, 'destroyNode': <built-in function LWNodeEditorFuncs_destroyNode_get>, 'setState': <built-in function LWNodeEditorFuncs_setState_get>, 'setContext': <built-in function LWNodeEditorFuncs_setContext_get>, 'getUserData': <built-in function LWNodeEditorFuncs_getUserData_get>, 'create': <built-in function LWNodeEditorFuncs_create_get>, 'init': <built-in function LWNodeEditorFuncs_init_get>, 'cleanup': <built-in function LWNodeEditorFuncs_cleanup_get>, 'setEnvGroup': <built-in function LWNodeEditorFuncs_setEnvGroup_get>, 'save': <built-in function LWNodeEditorFuncs_save_get>, 'getRootNodeID': <built-in function LWNodeEditorFuncs_getRootNodeID_get>, 'numberOfNodes': <built-in function LWNodeEditorFuncs_numberOfNodes_get>, 'getState': <built-in function LWNodeEditorFuncs_getState_get>, 'setUpdateFunc': <built-in function LWNodeEditorFuncs_setUpdateFunc_get>, 'addNode': <built-in function LWNodeEditorFuncs_addNode_get>, 'newTime': <built-in function LWNodeEditorFuncs_newTime_get>, 'setXY': <built-in function LWNodeEditorFuncs_setXY_get>, 'destroy': <built-in function LWNodeEditorFuncs_destroy_get>, 'copy': <built-in function LWNodeEditorFuncs_copy_get>, 'usedItems': <built-in function LWNodeEditorFuncs_usedItems_get>, 'getInputByIndex': <built-in function LWNodeEditorFuncs_getInputByIndex_get>, 'OpenNodeEditor': <built-in function LWNodeEditorFuncs_OpenNodeEditor_get>, 'setUserData': <built-in function LWNodeEditorFuncs_setUserData_get>, 'isOpenNodeEditor': <built-in function LWNodeEditorFuncs_isOpenNodeEditor_get>, 'addInput': <built-in function LWNodeEditorFuncs_addInput_get>}
------
member: __swig_setmethods__
{}
------
member: __weakref__
None
------
member: addInput
None
------
member: addNode
None
------
member: cleanup
None
------
member: connect
None
------
member: copy
None
------
member: create
None
------
member: destroy
None
------
member: destroyNode
None
------
member: getInputByIndex
None
------
member: getInputByName
None
------
member: getRootNodeID
None
------
member: getState
None
------
member: getUserData
None
------
member: init
None
------
member: isOpenNodeEditor
None
------
member: load
None
------
member: newTime
None
------
member: numberOfNodes
None
------
member: remInput
None
------
member: rename
None
------
member: save
None
------
member: setAutosize
None
------
member: setContext
None
------
member: setEnvGroup
None
------
member: setState
None
------
member: setUpdateFunc
None
------
member: setUserData
None
------
member: setXY
None
------
member: this
_e062bf0b00000000_p_st_LWNodeEditorFuncs
------
member: usedItems
None
------

BigHache
12-12-2012, 12:20 PM
I don't think nodes are implemented in Python yet. Since Python resembles the C/C++ SDK I expect there will be a node class/factory for writing plug-ins. If you look there are only 13 Python plug-in classes and 33 C/C++ plug-in classes in the current release.

Styler
12-12-2012, 01:30 PM
It's kind of weird, because some of classes like LWNodeInputFuncs, LWNodeDrawFuncs, LWNodalAccess.. are implemented but others are not. If it was planned, we wouldn't have partial support for nodes stuff. I think that guys were in hurry and left it as it. I hope this will be fixed in 11.5.