What if you make the function a global function? Now it's in the macroscript scope, maybe the callback can't reach it.

-Johan

PiXeL_MoNKeY

09 September 2009, 09:23 PM

But if that was true, just calling selTxt() from the listener while its open wouldn't work either, right? And it is declared as a global at the top of the script. It currently does work calling the function manually, just not with the callbacks.

-Eric

JHN

09 September 2009, 09:29 PM

Totally missed you already declared it as global, sorry. If nothing works maybe take a look at the in 2009 new introduced Node Event System.

Now I need some sleep,
hope it's somewhat helpful,

-Johan

PiXeL_MoNKeY

09 September 2009, 09:31 PM

Tried it and same problem. It gets declared, but for some reason its not calling my function on selection change. :/

-Eric

denisT

09 September 2009, 10:39 PM

Tried it and same problem. It gets declared, but for some reason its not calling my function on selection change. :/

-Eric

callback #selectionSetChanged calls after node selection changed (not subobject level selection!). You have to use when construct

I understand that #selectionsetchanged is node selection only, but with 2009 they added the new Node Event System (which JHN refered to), where #subobjectSelectionChanged is an option. But for some reason it didn't work with my test in 2010. But after rereading the info on the Node Event Callback system, my function may have been missing some required parameters (for some reason it wasn't throwing the error even though the parameters were missing). So I will give that approach another try, to see if I can get it to work. If not atleast I do have your modifications.

-Eric

CGTalk Moderation

09 September 2009, 03:10 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.

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com