Module object has no attribute .....

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  07 July 2010
Module object has no attribute .....


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?
  07 July 2010
You're going to need to post more of your code.
  07 July 2010

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

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??
  07 July 2010
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 01:49 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.