Announcement

Collapse
No announcement yet.

Maya 2022: Error with OnSimulationEnd script

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

  • Maya 2022: Error with OnSimulationEnd script

    I used a script with Maya 2020.4 and Phoenix 4.40 to render the simulation automatically when it stops. However, with Maya 2022.1 and Phoenix 4.41, I receive the following error:

    // Error: Error importing renderOnSimEnd python module - (kFailure): Unexpected Internal Failure //
    Code:
    //renderOnSimEnd.py
    
    import maya.cmds as cmds
    
    def OnSimulationEnd(node, t, dt):
    cmds.vrend()
    I realize Maya 2022 runs with Python 3, though I'm not well versed in the differences between Python 2 and 3 if that is the issue. Any suggestions would be appreciated.

  • #2
    Hey,

    We had some Python fixes before a couple of weeks, so this might be the problem. Could you try with latest Phoenix Nightly - https://nightlies.chaosgroup.com/mai...est/2021-10-11

    Here you can find more information about the scripting - https://docs.chaosgroup.com/display/PHX4MAYA/Scripting


    Hope this helps!
    Slavina Nikolova
    QA Specialist, V-Ray for SketchUp | V-Ray for Rhino | Phoenix
    Chaos

    Comment


    • #3
      The latest nightly build did the trick. Thanks!

      Comment

      Working...
      X