Handling Data Migrations#

The RTX Remix Toolkit offers a data migration tool to ensure compatibility between older projects and the latest runtime and toolkit versions. This tool is a batch script that allows users to run all available migrations using a consistent method.


Finding the Migration Tool#

  1. Open your Toolkit installation directory in File Explorer.

  2. Locate the lightspeed.app.trex.migration.cli.bat script file.

Executing the Migration Tool#

  1. Once in the installation directory, click on the address bar at the top and enter:

    cmd
    

    CLI Asset Ingestion Tool 3

  2. This command should open a command prompt window with the current working directory set to the installation directory.

  3. Using the command prompt window, execute the lightspeed.app.trex.migration.cli.bat script using the following command:

    lightspeed.app.trex.migration.cli.bat -h
    
  4. You should now see the available migrations. Follow the instructions given by the tool to execute the desired migrations.

Performing a Migration#

To perform a migration, follow the instruction given by the tool during the previous step.

For example, executing the following command:

lightspeed.app.trex.migration.cli.bat distant-lights-z-direction -h

Should give you instructions on how to migrate the distant lights in your existing project.


Available Migrations#

The migration tool is a central point where you can find all available migrations.

Distant Lights Z Direction#

If a mod was created before the following commit: Fix orientation of exported (USD captures) distant lights. Comply with the USD standard: -Z axis must point from the sun to the earth.

The distant lights in the mod were pointing in the wrong direction. This migration will need to be executed once to invert the direction of the distant lights and fix the issue.

Migration Name#

distant-lights-z-direction

Purpose#

Migrate distant lights pointing in the wrong direction (Z towards the sun) to point in the correct direction (Z away from the sun).

Arguments#

Argument

Description

--file FILE
-f FILE

Path to the USD file to migrate to the updated standard

--directory DIRECTORY
-d DIRECTORY

Path to the directory of USD files to migrate to the updated standard

--force
-F

Force execute the migration, regardless of if it was already executed or not.

--recursive
-r

Recursively search for USD files in the given directory.
Will be ignored if --file is given.

Example Command#

lightspeed.app.trex.migration.cli.bat distant-lights-z-direction -d "PROJECT_DIRECTORY_HERE" -r

Where PROJECT_DIRECTORY_HERE is replaced with the actual project directory where the migration should be applied.


Need to leave feedback about the RTX Remix Documentation? Click here