trueBlue wrote: ↑18 Feb 2025, 18:44
clintonman wrote: ↑18 Feb 2025, 04:03
The last release still had the same old installer bug on one piece. Fixed now.
Are you sure this new installer is correct?
Have not tried it, just reading
1.) Looks like the Toolbar Manager would be a requirement for non-UU10 installation
2.) Looks like you are copying theScript and theWidget inside trueSpace, which negates Load On-Demand
The toolbar left mouse button Command and RClickCommand should be the process to load theScript and theWidget
Edit: Unless I am missing seeing this, it looks like you are not saving the CCFunctionSet.RsObj to disk
1.) Toolbar Manager is not used by the Normal Move Tool, there is no toolbar.
2.) Script and Widget are copied in so they can be used immediately. They are not saved to disk inside CustomCommands or Widgets. They only exist on disk inside \\Scripts\\clintonobjects\\CustomScriptsStore2\\
LMB
Node.AccessFnSet("Scripts/CustomCommands/CCFunctionSet").NormalMove("LMB")
RMB
Node.AccessFnSet("Scripts/CustomCommands/CCFunctionSet").NormalMove("RMB")
code copied into the CCFunctionSet loads the script and widget and runs it:
Code: Select all
function NormalMove(MouseButton)
{
if(!LoadScript("NormalMove", "NormalMove.RsObj", "Normal Move Script is not installed")) return;
if(!Node.Exists("/Widgets/Tools/Mesh editor/PE NormalMove"))
RsFileIO.LoadObject(System.GetMainDir() + "\\Scripts\\clintonobjects\\CustomScriptsStore2\\PE NormalMove.RsObj", "/Widgets/Tools/Mesh editor");
if(MouseButton == "LMB") {
Activity.Run("Scripts/CustomCommands/NormalMove/StartNormalMove")
} else {
UserInterface.OpenToolPanelViewEx2("" , "" ,"/Widgets/Tools/Mesh editor/PE NormalMove/Normal Move", 3,1,0)
}
}
Good catch

, the very last step was missing. While testing I didn't want permanent changes to the CCFunctionSet. Should have copied and commented it out.
Code: Select all
RsFileIO.SaveObject(mainDir + "\\Scripts\\clintonobjects\\CustomScriptsStore\\CCFunctionSet.RsObj", "/Scripts/CustomCommands/CCFunctionSet");
The installer also adds functions OpenToolbar, LoadScript and UpdateScriptManagerList.
OpenToolbar will be removed from the installer since an OpenToolbar function was just added to the latest Global Function Set.