thanks
you obviously know what you are talking about
yes its the parameter spreadsheet i meant
i would need the transformed position in a wrangler to set color depending on position
in the meantime i figured i can use
right click / reference / scene data / my object / transformation ...
and i get this
if i copy this straight in to a wrangler i get a bunch of errors not a big thing that i could probably fix
in the end this is fine and will work
BUT is there really now easier way
something like
x = getmetransform("object", "position", "X");
z = getmetransform("object", "rotation", "Z");
and not 10 lines of code where i need to add each and every transformation of the object one by one by hand
{
matrix src_input_xform_inverted = invert(optransform(opinput("../../pen", 0)));
matrix src_xform = optransform("../../pen");
matrix src_local_xform = src_xform * src_input_xform_inverted;
matrix target_xform_inverted = invert(optransform(opcreator(".")));
matrix final_xform = src_local_xform * target_xform_inverted;
matrix rest_xform = identity(4);
matrix self_xform = rest_xform * final_xform;
float result = explodematrixpr(
self_xform,
vector3(ch("./px"), ch("./py"), ch("./pz")),
vector3(ch("./prx"), ch("./pry"), ch("./prz")),
chs("./xOrd"), chs("./rOrd"), "TX");
return result;
}