Announcement

Collapse
No announcement yet.

Restore a Sim from Command Line

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Restore a Sim from Command Line

    I am using the PhoenixFDSimulate.ms script to run sims manually form the command line (with no gui).

    I am now trying to do a Restore operation from a particular frame. So I modified that script to start the sim like this:

    Code:
    A_StartSim(PhoenixFDObjectsToSim[i],"G:/MyPath/MAX/sceneassets/PHX/MySim_0930.aur",930)
    I tried backslashes. I tried escaped (double) backslashes. All of this causes an Error Executing Script, and highlights this line of code, but give no additional info.

    How can I start a Restore operation form the command line, restoring from a particular frame?

    Thanks.


    Based on docs here: https://docs.chaos.com/display/PHX4MAX/MaxScript#MaxScript-StartSim

  • #2
    Oh, duh, It's my lack of familiarity with MaxScript function calling syntax... It's not like C (which everything should be).

    Code:
    A_StartSim(PhoenixFDObjectsToSim[i]) "G:/MyPath/MAX/sceneassets/PHX/MySim_0930.aur" 930

    Comment


    • #3
      Ah yes, I believe even the first pair of braces could also go
      Svetlin Nikolov, Ex Lead Phoenix developer

      Comment


      • #4
        Yeah, I figured, but since they were in the original it threw me.

        I still thing all languages should have the basic syntax of C

        thanks.

        Comment

        Working...
        X