Search Unity

Question Automation of records for multiple scenes

Discussion in 'Audio & Video' started by Yothuba, Feb 1, 2024.

  1. Yothuba

    Yothuba

    Joined:
    Oct 4, 2019
    Posts:
    21
    I am trying to create an automated script that will run on one scene and when the recording of the recorder on the timeline is complete, load the next scene and repeat the same process.

    The prerequisite is that the timeline is offset from the start of the timeline such that it enters the record state the moment it is played.
    I am thinking that the first step would be to access the recorder each time the scene is loaded and get the playback status, but I don't know how to access an already running recorder.
    Any ideas on how to access it or a good idea?

    Translated with www.DeepL.com/Translator (free version)
     
  2. marief_unity

    marief_unity

    Unity Technologies

    Joined:
    Oct 9, 2018
    Posts:
    142
    Hi there !

    Can you clarify what is the use case and/or what is the problem you are trying to initially fix ?
    Feels your message is already exposing a solution but we could benefit from knowing what is the initial problem.

    But I believe Recorder' samples (that you can download from Package Manager) and this page of our doc could be a starting point for you.
     
  3. Yothuba

    Yothuba

    Joined:
    Oct 4, 2019
    Posts:
    21
    Hello!
    Here is the problem we are trying to solve.
    -------------------------
    We have a timeline with a large number of scenes and a RecorderTrack for each scene.
    Currently, to render each scene, we have to press the Run button for each scene, wait for it to finish, manually change the scene again, and repeat the steps.
    -------------------------
    If this procedure were automated, there would be no more periodic work to do.
    For example, if you have 10 scenes that take an hour to record each time, you now have to go back every hour to check on them, but if the procedure is automated, you will have 10 hours of free time!
     
  4. marief_unity

    marief_unity

    Unity Technologies

    Joined:
    Oct 9, 2018
    Posts:
    142
    I believe batch recording could then be an avenue for you. Cf this page of our doc as a starting point.