Preview:
global proc makeCar()
{
	string $car[] = `polyCube -w 1 -h 1 -d 3 -sx 1 -sy 1 -sz 3 -ax 0 1 0 -cuv 4 -ch 1`;
	string $extr[] = `polyExtrudeFacet -constructionHistory 1 -keepFacesTogether 1 -pvx 0 -pvy 0.5 -pvz 0 -divisions 1 -twist 0 -taper 1 -off 0 -thickness 0 -smoothingAngle 30 ($car[0]+".f[2]")`;
	// Result: polyExtrudeFace1 // 
	setAttr ($extr[0]+".localTranslate") -type double3 0 0 0.715981 ;

}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter