# Malcolm Kesson Sept 26 2017
# Script Version: 2
rman "-version 1" {
  
Declare param {int pi_ignore} {
    label "Ignore Archive"
    description "No description."
    subtype switch
    }
Declare param {string pi_archive} {
    label "Archives Directory"
    description "The folder containg one or more rib archives."
    }
Declare param {float pi_xyzOffset} {
    label "Random XYZ Offset"
    subtype slider
    range {0.001 1}
    description "No description."
    }
Declare param {float pi_scaleMin} {
    label "Random Scale Min"
    subtype slider
    range {0.001 1}
    description "No description."
    }
Declare param {float pi_scaleMax} {
    label "Random Scale Max"
    subtype slider
    range {0.001 1}
    description "No description."
    }
Declare param {float pi_xrotMin} {
    label "Random MinX Rotation"
    subtype slider
    range {0 180}
    description "No description."
    }
Declare param {float pi_xrotMax} {
    label "Random MaxX Rotation"
    subtype slider
    range {0 180}
    description "No description."
    }
    
Declare param {float pi_yrotMin} {
    label "Random MinY Rotation"
    subtype slider
    range {0 180}
    description "No description."
    }
Declare param {float pi_yrotMax} {
    label "Random MaxY Rotation"
    subtype slider
    range {0 180}
    description "No description."
    }
  
Declare param {float pi_zrotMin} {
    label "Random MinZ Rotation"
    subtype slider
    range {0 180}
    description "No description."
    }
Declare param {float pi_zrotMax} {
    label "Random MaxZ Rotation"
    subtype slider
    range {0 180}
    description "No description."
    }
Declare param {float pi_cull} {
    label "Culling"
    subtype slider
    range {0 1}
    description "No description."
    }
Declare param {int pi_useRotations} {
    label "Use Particle Rotation"
    description "No description."
    subtype switch
    }
        
# The Collection and NodeOptions blocks enable a Pre-Shape MEL script
# to be assigned to "RenderMan Controls->Geometric Settings" panel.
Collection pi_OptionalGeometricSettings {
    param pi_ignore {
        default 0
        state optional
        }
    param pi_archive {
        default "RIB_Archive"
        state optional
        }
    param pi_xyzOffset {
        default 0.00
        state optional
        }
    param pi_scaleMin {
        default 1.00
        state optional
        }
    param pi_scaleMax {
        default 1.00
        state optional
        }
    param pi_xrotMin {
        default 0
        state optional
        }
    param pi_xrotMax {
        default 0
        state optional
        }
    param pi_yrotMin {
        default 0
        state optional
        }
    param pi_yrotMax {
        default 0
        state optional
        }
    param pi_zrotMin {
        default 0
        state optional
        }
    param pi_zrotMax {
        default 0
        state optional
        }
    param pi_cull {
        default 0
        state optional
        }
    param pi_useRotations {
        default 0
        state optional
        }
    }
NodeOptions {kGeometric kParticle} {
       reference Collection optionalGeometricSettings
       reference Collection pi_OptionalGeometricSettings
    }
}