Add assembly or .cs file reference in TF scriptOp - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: Feature Requests (https://forum.tyflow.com/forum-4.html) +--- Thread: Add assembly or .cs file reference in TF scriptOp (/thread-1791.html) |
Add assembly or .cs file reference in TF scriptOp - Geoff - 06-20-2020 Hi Tyson, I’m still looking for a solution to this problem...It would be great if we could add external references (cs or dll) at compile time using a specific location like Unity or with a specific syntax like //css_reference in CS-Script... For now I’m using reflection. Is it doable already or, if not the case and not too complicated, could you consider implementing such an option? Thanks RE: Add assembly or .cs file reference in TF scriptOp - tyFlow - 07-02-2020 Have you tried Assembly.Load? RE: Add assembly or .cs file reference in TF scriptOp - Geoff - 07-03-2020 Yes it works with Assembly.Load, that’s what I m doing for now (reflection+delegates) but it’s less convenient and slower than direct executing code from the script operator with “using” directives + compiler refs as we can do with Max.dlls. BTW something else that would be very handy in the script editor, a function to fold all levels of the code in one shot! Maybe there’s a secret shortcut already... RE: Add assembly or .cs file reference in TF scriptOp - tyFlow - 07-03-2020 Hmm, I guess adding a place to enter pre-loadable libraries would be handy. I'll put it on the roadmap. RE: Add assembly or .cs file reference in TF scriptOp - Geoff - 07-03-2020 Great! This would open a lot of possibilities! And just in case you have the time...Regarding a “fold all levels” option, it could be alt+0 like in Notepad ++ Thanks Tyson! |