Set attributes when intializing Transform.