How do I fit the Comp length to a layers length in after effects? lets sayI have a comp in after effects with one layer. The layer appears to be longer than the actual comp. Is there any shortcut to make the comp automatically fit the length of the layer?

Thanks in advance!
This free script - rd: Comp Setter - should help.