global proc slimCmdsSampler()
{

    file -f -new;
    setAttr "persp.tx" 4.7;
    setAttr "persp.ty" 3.5;
    setAttr "persp.tz" 4.7;
    setAttr "persp.ry" 45.0;


    cylinder;
    directionalLight;

    string $newPal = `slimcmd slim CreatePalette -new -edit`;      
    slimcmd $newPal SetLabel "FunPalette";
    // slimcmd slim ReadSlimFile "/soft/apps/rat/4.5.1m40/lib/slim/shadingmodels.slim";
    string $shdrHandle = `slimcmd $newPal CreateInstance -template "pixar,Constant"`;
    $shdrID = `slimcmd $shdrHandle GetID`;	
    select -ne -replace nurbsCylinderShape1;
    mtor control attach "surface" $shdrID; 
    mtor control renderspool;
}// slimCmdsSampler()