PDA

View Full Version : LWPy and nodeEditor



Styler
03-22-2013, 03:23 AM
Hi guys,

Does anybody succeeded with accessing to nodeEditor?

How i tried to get access:


objInfo = lwsdk.LWObjectInfo()
ifaceInfo = lwsdk.LWInterfaceInfo()
obj = ifaceInfo.selected_items()[0]
ne = objInfo.getNodeEditor(obj) # displacement nodeEditor for selected object

neFunc = lwsdk.LWNodeEditorFuncs()

# finally do some stuff with nodeEditor for current object
isOpen = neFunc.isOpenNodeEditor(ne)


Unfortunately I got "TypeError: 'NoneType' object is not callable". Obviously calling "type(neFunc.isOpenNodeEditor)" says <type 'NoneType'>. WTF is going on? Why just don't tell people in documentation "Ok, folks, we have some progress with LWPy, We implemented this and this, nodeEditor stuff is not implemented yet, sorry, but will be available in XX version". This is simple as that! Hate it!