Rows

The Row layout allows you to arrange the controls on a property page in columns.

Layout "Default"
{
   ...

   Row
   {
       <parameter_name> [, #Rabu54047">width%];
       ...
#Groups">       Group [, width%]
       {
          ...
       }
   }
}

 

Use Row instead of the (deprecated) Continue keyword. Continue was an attribute that can be added to any parameter to indicate that the next parameter should appear on the same line. For example:

UseShadowMaps, Continue, 20%;
RebuildShadowMaps, Continue, 20%;
MBShadowmaps, 60%; 

Example: Arrange Controls on the Same Row

These two controls appear on the same row and are spaced evenly apart:

 

 

The preceding property page was produced by a SPDL file using the following syntax:

PropertySet "rows_pset"
{
   Parameter "snapenableu" input
   {
       GUID = "{64DFDFA4-491D-4F1B-9A74-4187E16EF94C}";
       Type = boolean;
       Value = off;
   }
   Parameter "snapenablev" input
   {
       GUID = "{02A58B90-BA74-4E0A-8847-86C3B74D6A99}";
       Type = boolean;
       Value = off;
   }
}

Defaults
{
   snapenableu
   {
       Name = "Snap Enable U";
   }
   snapenablev
   {
       Name = "Snap Enable V";
   }
}

Layout "Default"
{
   Group "Snapping"
   {
       Row
       {
          snapenableu;
          snapenablev;
       }
   }
}

width

The width value only applies to parameters or groups inside a Rows control. It allows you to control the horizontal spacing of controls by specifying the percentage that each should take. For example, we could modify the above example to stuff the left parameter into a third of the total width of the row using this syntax:

Layout "Default"
{
#Groups">   Group "Snapping"
   {
       Row
       {
          snapenableu, 33%;
          snapenablev, 67%;
       }
   }
}

 

 

 



Autodesk Softimage v7.5