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 );

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s