Pendragonii
06-10-2010, 02:22 PM
So I'm trying to use a string in an expression although I'm not having any luck. There is something in the help for expressions that says you need an escape \" for quotes or it'll get confused, well that's just down right confusing me. Maybe there is a better way to go about this, I read somewhere that I could write a script that writes an expression??? sounds wild to me. Anyways here's what I have.
expression -s "polyExtrudeFace1.localTranslateZ = WheelMeasuringDevice69.SideWallHeight * (.01) * polyCylinder1.height" -o $wmd[1] -ae 1 -uc all ; // this works but only for objects named exactly that.
expression -s "($sw[0] + ".localTranslateZ") = 0.01* ($wmd[0] + ".SideWallHeight") * .01 * ($wmd[1] + ".height")" -o $wmd[1] -ae 1 -uc all ; // This is how I expected it to work.
expression -s "$swhLTZ = $wmdSWH * (.01) * $wmdSWH" -o $wmd[1] -ae 1 -uc all ; // yells at me for putting something in an expression ???
well if anyone has suggestions or need more info let me know.
expression -s "polyExtrudeFace1.localTranslateZ = WheelMeasuringDevice69.SideWallHeight * (.01) * polyCylinder1.height" -o $wmd[1] -ae 1 -uc all ; // this works but only for objects named exactly that.
expression -s "($sw[0] + ".localTranslateZ") = 0.01* ($wmd[0] + ".SideWallHeight") * .01 * ($wmd[1] + ".height")" -o $wmd[1] -ae 1 -uc all ; // This is how I expected it to work.
expression -s "$swhLTZ = $wmdSWH * (.01) * $wmdSWH" -o $wmd[1] -ae 1 -uc all ; // yells at me for putting something in an expression ???
well if anyone has suggestions or need more info let me know.
