sequencer¶
-
sequencer.
offset_scene
(sequencer_info=None, shot_code=None, target_start=None, offset=0, delete_sequencer=True, sk='', context='')¶ Offset the scene animation by the given offset, or by using the shot_code from an NReal sequencer_info json file that can be generated using the sequencer_to_json()
Parameters: - sequencer_info – sequence info json file
- shot_code – the code of the target shot, based on this code, the offset will be detected from the sequencer_info file (so, sequencer_info and shot_code should both be provided).
- target_start – the start frame the given shot should start from (by default this will be queried from the current animation task shot information in melGlobals)
- offset – if no sequencer_info and shot_code are provided, the offset value will be used to offset the animation.
- delete_sequencer – if True, the sequencer and shots will be deleted after succeeding with the offsetting operation
Returns: status
-
sequencer.
sequencer_to_json
(sequencer_info, sequencer=None, scene_code=None)¶ Write maya sequencer information into json file format:
{ "sequencer": <sequencer_name>, "scene_code": <scene_code>, "duration": <duration_in_frames>, "shots": [ { "shot": <shot_code>, "camera": <camera_name>, "start_frame": <start_frame>, "end_frame": <end_frame>, "seq_IN_frame": <sequence_start_frame>, "seq_OUT_frame": <sequence_end_frame> }, .... ] }
Parameters: - sequencer_info – file path for the json file to be generated
- sequencer – maya sequencer name
- scene_code – if not preset, it will be queried from the current task
Returns: status