Thanks for the reply
Now this is what I have so far:
if (`chs("../make_brick_shape/sz")` > `chs("../make_brick_shape/sx")`/2)
{
//maketransform(0,0,{ TX, TY, TZ },{ RX, RY, RZ},{ SX, SY, SZ },{ CEX, CEY, CEZ });
float xscale = bbox("../overall_scale", D_XSIZE) - ( `chs("../make_brick_shape/sz")` - ((`chs("../make_brick_shape/sx")`/2) );
@P *= maketransform(0,0,{ 0, 0, 0 },{ 0, 0, 0 },{ xscale, 1, 1 },{ 0, 0, 0 });
}
else
{
@P *= maketransform(0,0,{ 0, 0, 0 },{ 0, 0, 0 },{ 5, 5, 5 },{ 0, 0, 0 });
}
I get an error that says “ unexpected ‘;’ expecting ‘,’ or ‘)’ ”
Basically:
I created the “xscale” float variable to calculate the xscale, so I dont have to put that long expression in the maketransfor function.
Basically the xscale of the second box must be equal to the bounding box of another object less a certain value (the rest of the expression.)
Then in the else statement I pnt 5,5,5 in the scale just as a test, once the if will work ill write the else properly.
Why I get that error?
Thanks