Share objects across multiple script operators
#2
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.
  Reply


Messages In This Thread
RE: Share objects across multiple script operators - by tyFlow - 07-18-2023, 01:30 PM

Forum Jump: