I would like to copy the x-location by constraint to other objects, but the cubes have all the same location (x = 0). Is there a way to get the real location by the curve modifier to use it in a constraint without apply the modifier?
Assign one of the cubes’ vertices, or one vertex, to a vertex group. Use a copy location constraint, world->world, targeting the object, with that vertex group specified. You will get the median world position of all vertices thus marked.
Assign one of the cubes’ vertices, or one vertex, to a vertex group. Use a copy location constraint, world->world, targeting the object, with that vertex group specified. You will get the median world position of all vertices thus marked.