Are you asking about getting the reference to the object? to change the transparency all you need to do is change the alpha channel.