Share objects across multiple script operators
#3
(07-18-2023, 01:30 PM)tyFlow Wrote: 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.

Ok I see thanks for clarifying!
  Reply


Messages In This Thread
RE: Share objects across multiple script operators - by wbk - 07-19-2023, 03:42 PM

Forum Jump: