PDA

View Full Version : initCallback in scriptedPanelType


Buexe
09-30-2003, 12:50 PM
yo everybody!
I have created (or better: I am trying to create) a scripted panel which contains a textscrollList that lists certain objects in my scene. Now when I make a new scene, I want to update that list. I think that the command to do so would be the initCallBack command that I defined for the scripted Panel Type, but somehow it doesn`t do what I would expect. The update itself is fairly easy, I have created a procedure that should run, when the init Callback is needed. Has anyone a clue what keeps the list from updating?

Any help is appreciated
cheers
buexe

CaptainSam
10-01-2003, 02:42 AM
I think there may be a flag with scriptedPanel or scriptedPanelType that tells Maya that the panel needs initialization. As far as I can see, initCallback isnt called by default. Why dont you just use the addCalback instead, since thats ccalled each time you load the panel

CGTalk Moderation
01-16-2006, 05:00 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.