PDA

View Full Version : Module object has no attribute .....


maniselvaraj
07-13-2010, 06:22 AM
Hi,

I have created a custom menu called test in my application, which basically saves the nuke script with version and loads the nuke script depending upon the selected version.

While saving i used,
nuke.scriptSave("path") command.

but when i load this script back, the script will contain my test node, but the nodes functionality does not work.

It gives me error as,
'module' object has no attribute called 'testSave'

where testSave is my knob name.

How to solve this problem?

alkali22
07-14-2010, 04:11 PM
You're going to need to post more of your code.

maniselvaraj
07-15-2010, 05:34 AM
Hi,

I have created a test folder and kept it in the nuke-plugin folder.
And added "nuke.pluginAddPath("./test",addToSysPath=True)" line to init.py

when i create test node, all the callback functionality works properly.
If i save the current NUKE script which has "test" node created in it, using nuke.scriptSave()
API, and then open the saved script in NUKE, in that case test node functionality does not work.

So how to register the custom menu node with NUKE, so that it connects with its callback even though the node is saved and open back??

CGTalk Moderation
07-15-2010, 05:34 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.