Transfer machine for machining operations, comprising: a frame; a rotary table with a rotary feeding movement relative to a machine axis; a plurality of workpiece-holder members mounted on said rotary table and spaced by a predefined working radius (r) from said machine axis, a plurality of workstations accessible by said workpiece-holder members as a result of the rotary feeding movement of said table; at least one rotary unit able to rotate a workpiece-holder member around a respective axis and relative to the table, said rotary unit comprising: a motor assembly mounted inside a corresponding seat of the frame and located at a distance (d) from said machine axis which is less than said working radius (r), said distance between motor assembly and machine axis being defined by the distance (d) between an axis of the motor assembly and said machine axis, a transmission assembly for transferring the rotary movement from said motor assembly to said workpiece-holder member; a selective coupling system, between the motor assembly and the transmission assembly, configurable in a first disengaged position, in which the motor assembly and the transmission assembly are separated and the rotary table is free to rotate, and in a second engaged position, in which the motor assembly and the transmission assembly are connected so as to be rotationally coupled to each other wherein said transmission assembly is integrated in the rotary table. a frame; a rotary table with a rotary feeding movement relative to a machine axis; a plurality of workpiece-holder members mounted on said rotary table and spaced by a predefined working radius (r) from said machine axis, a plurality of workstations accessible by said workpiece-holder members as a result of the rotary feeding movement of said table; at least one rotary unit able to rotate a workpiece-holder member around a respective axis and relative to the table, said rotary unit comprising: a motor assembly mounted inside a corresponding seat of the frame and located at a distance (d) from said machine axis which is less than said working radius (r), said distance between motor assembly and machine axis being defined by the distance (d) between an axis of the motor assembly and said machine axis, a transmission assembly for transferring the rotary movement from said motor assembly to said workpiece-holder member; a selective coupling system, between the motor assembly and the transmission assembly, configurable in a first disengaged position, in which the motor assembly and the transmission assembly are separated and the rotary table is free to rotate, and in a second engaged position, in which the motor assembly and the transmission assembly are connected so as to be rotationally coupled to each other wherein said transmission assembly is integrated in the rotary table. a motor assembly mounted inside a corresponding seat of the frame and located at a distance (d) from said machine axis which is less than said working radius (r), said distance between motor assembly and machine axis being defined by the distance (d) between an axis of the motor assembly and said machine axis, a transmission assembly for transferring the rotary movement from said motor assembly to said workpiece-holder member; a selective coupling system, between the motor assembly and the transmission assembly, configurable in a first disengaged position, in which the motor assembly and the transmission assembly are separated and the rotary table is free to rotate, and in a second engaged position, in which the motor assembly and the transmission assembly are connected so as to be rotationally coupled to each other wherein said transmission assembly is integrated in the rotary table.