Comedian Andy Dick smacked up the camera of a TMZ.com photographer Wednesday night and ripped the man's shirt.

The incident took place outside of the Opera nightclub in Hollywood, where Dick tried to get in wearing shorts — a big dress code no-no.

After his rejection was caught on tape, Dick talked his way in, but emerged a short time later.

Obviously irritated, Dick swung wildly at the photographer, chasing him down the Hollywood Walk of Fame before finally giving up, TMZ reports.

Dick is a former co-star of the '90s sitcom "NewsRadio."

Click here for the TMZ report