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® Softimage® / XSI SDK / Custom commands (C++/6.5)
  RSS 2.0 ATOM  

Custom commands (C++/6.5)
Rate this thread
 
30142
 
Permlink of this thread  
avatar
  • mslaf
  • Posted: 10 December 2008 03:37 AM
  • Total Posts: 71
  • Joined: 10 December 2008 05:47 AM

Hi,

I have a problem with setting user preference values in external scripts.

1) Is there a way to register the custom command execution as a single entry in the Undo history. Something like SQL’s BEGIN TRANSATION/END TRANSACTION block.

2) Is there a way to disable auto restoring values for parameters within the User preferences that were modified by custom scripts. I know that this feature has been introduced in 5.0 to decrease the support, but it doesn’t work well with the undo history and still allows to set parameter values in uncontrolled way.

In example: custom command first disables popup dialogs and then enables them ( from previously saved status ) at the end of its code.  The first Undo operation after custom command execution disables the popup dialogs again.

Cheers,



Replies: 0