It will fail if called with ScriptObject.Execute and it will fail if the button directly calls a Function Set function.
This is a toolbar button command that fails because Node.Value is used in the Parent() function script.
Code: Select all
GlobalFS = Node.AccessFnSet("Scripts/CustomCommands/Global Function Set");GlobalFS.Parent();
Code: Select all
cmd='GlobalFS = Node.AccessFnSet("Scripts/CustomCommands/Global Function Set");GlobalFS.Parent();';RsApp.RunScriptBuffer(cmd);