3dsmax - max sdk 3ds MAX 2013 -


i writing plugin 3ds max 2013. in plugin need user add "user defined" properties in "object properties" window of "mesh / camera / light". after entering values need validate conditions in data, , if there errors need show message box , cancel closing of "object properties" window.

using notify_pre_node_user_prop_changed , notify_post_node_user_prop_changed able validate conditions , show error messages. how stop closing of window after showing error message?

in maxsdk 3ds max 2013, in tabdialogmessages enum find flag "tabdlg_precommit" seems need. how can use flag "object properties" window. if can use how handle of editbox in "user defined" tab of "object properties" window.

unfortunately, think impossible. main issue trying getting ip once properties dialog displayed. there no way (afaik) of affecting dialog before posted, , no way of getting instruction pointer after. if figure out, subclass dlgproc , intercept oktocommit call validation.

what instead though validate properties, , if not appropriate re-post dialog using 'actionman.executeaction 0 "40022" -- edit: properties'. user see dialog dissappear, , reappear immediately. not perfect, it's something.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -