07-18-2023, 01:30 PM
Everything you write in a Script operator is couched in a custom, hidden class at compile-time (compilation only occurs when a script changes, so it survives across multiple frames in a sim)....so in that sense it's not possible to write code in one script that is accessible from another.
You could use MAXScript (outside of the Script operator) to instantiate your own C# classes, which you could then access from any Script operator.
You could use MAXScript (outside of the Script operator) to instantiate your own C# classes, which you could then access from any Script operator.