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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 07 July 2010   #1
Module object has no attribute .....

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?
 
Old 07 July 2010   #2
You're going to need to post more of your code.
 
Old 07 July 2010   #3
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??
 
Old 07 July 2010   #4
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 12:02 PM.


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