Other edit styles for PPG items


A couple of weeks ago, I posted about adding a password field to a PPG with the ES_PASSWORD edit style (from winuser.h).

Here’s a couple of other edit styles you can use; just run this script in the Softimage script editor.

/ Create CustomProperty
var oCustomProperty = XSIFactory.CreateObject( "CustomProperty" );

// Add Parameter(s) to the custom property
oCustomProperty.AddParameter( "password", siString, siClassifUnknown, siSilent, "", "", "", "", 0, 1, 0, 1 );
oCustomProperty.AddParameter( "lowercase", siString, siClassifUnknown, siSilent, "", "", "", "", 0, 1, 0, 1 );
oCustomProperty.AddParameter( "UPPERCASE", siString, siClassifUnknown, siSilent, "", "", "", "", 0, 1, 0, 1 );

// PPG Layout
oLayout = oCustomProperty.PPGLayout;
oLayout.Clear();
var oItem = oLayout.AddItem( "password", "Password", siControlEdit );
oItem.SetAttribute( siUIStyle, 32 ); // ES_PASSWORD

var oItem = oLayout.AddItem( "lowercase", "lowercase", siControlEdit );
oItem.SetAttribute( siUIStyle, 16 ); // ES_LOWERCASE

var oItem = oLayout.AddItem( "UPPERCASE", "UPPERCASE", siControlEdit );
oItem.SetAttribute( siUIStyle, 8 ); // UPPERCASE


InspectObj( oCustomProperty );

Tech notes on standalone licensing


On the train in to work, I spent a little time getting familiar with Standalone licensing. I found a couple of ways to get the there is no interactive license available to run Softimage error:

  • Corrupt or missing ProductInformation.pit
    In %TEMP%\SoftimageLicense.log, you’ll see an entry that mentions the Product Information Table File. For example:

    VendorError=24 [Unable to locate the Product Information Table File]
  • Softimage cannot start the FLEXnet Licensing Service.
    Softimage tries to start this service at startup, and if it cannot start the service (for example, if the service is deactivated), you’ll see this in %TEMP%\SoftimageLicense.log:

    VendorError=101 [The license cannot be accessed/loaded/opened]

    By default, the service is set to start Manual, but you can change that to Automatic and Softimage will still get a license.