def from_payload(self, payload):
number_of_objects = payload[<NUM_LIT:0>]<EOL>self.remaining_scenes = payload[-<NUM_LIT:1>]<EOL>predicted_len = number_of_objects * <NUM_LIT> + <NUM_LIT:2><EOL>if len(payload) != predicted_len:<EOL><INDENT>raise PyVLXException('<STR_LIT>')<EOL><DEDENT>self.scenes = []<EOL>for i in range(number_of_objects):<EOL><INDENT>scene = payload[(i*<NUM_LIT>+<NUM_LIT:1>):(i*<NUM_LIT>+<NUM_LIT>)]<EOL>number = scene[<NUM_LIT:0>]<EOL>name = bytes_to_string(scene[<NUM_LIT:1>:])<EOL>self.scenes.append((number, name))<EOL><DEDENT>
Init frame from binary data.