Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / update FBlist on selection???
  RSS 2.0 ATOM  

update FBlist on selection???
Rate this thread
 
60664
 
Permlink of this thread  
avatar
  • Seb123
  • Posted: 05 October 2011 02:08 AM
  • Total Posts: 92
  • Joined: 05 November 2009 10:41 AM

Hi,

I need to have a FBList dropdown to update the items and the currently selected item in the list, when selecting specific objects in the scene. So, I select a null, and the list automatically updates to show me the list of multirefparents and which one is active.

I wanted to use the kFBSceneChangeSelect, but that gives me this error when i run other scripts while its running.
“WindowsError: exception: access violation writing 0x0000000C” refering to a line in another script.

I can think of a few solutions.
I could use the UIIdle instead, but that seems to be a bit overkill to have it check for the selected object all the time. Or am I wrong?
I could also have a button that updates the list, but that doesnt seem very elegant, as this will need to happen quite often.
Or I could activate/deactivate the selecttionevent when I want to use this tool.

So the question is, is there any other/better way of doing this? or avoiding the error?



Replies: 0