Member kritskiy.001 Posted November 30, 2022 Member Report Share Posted November 30, 2022 Hello, I'm moving to 2022 and I'm trying to bring my scripts from V4 to 2022. In V4 I would have a \ExtraMenuItems folder with a bunch of .xmls with MenuPath, MenuItem and Command tags to define the name, menu and the actual script that's going to be used when the command is selected. I copied the folder to the \Documents\3DCoat\UserPrefs\Scripts\ExtraMenuItems\ and the scripts appear in 2022. However non of them works, I'm getting "Nothing was built in the module" error. If I run the script via Scripts > Run menu they work fine. Should I change anything for the scripts to work from the menus? Thanks Quote Link to comment Share on other sites More sharing options...
Carlosan Posted November 30, 2022 Report Share Posted November 30, 2022 Hello Better to ask Andrew. I am shotting in the dark: try edit current room. I guess you have to add it to the text of the menu scripts. Quote Link to comment Share on other sites More sharing options...
Member kritskiy.001 Posted November 30, 2022 Author Member Report Share Posted November 30, 2022 1 hour ago, Carlosan said: Hello Better to ask Andrew. I am shotting in the dark: try edit current room. I guess you have to add it to the text of the menu scripts. Thanks, but it seems that editing the menu script won't help: there are no "commands" unless I'm missing something. Everything is being called via menu_item() function... Even the recent scripts list calls for a recent scripts menu item: When you say "Better ask Andrew" do you mean by writing to his email? I imagine he gets 10000000 messages a day lol Thanks 1 Quote Link to comment Share on other sites More sharing options...
Carlosan Posted December 1, 2022 Report Share Posted December 1, 2022 As example i was testing this old V4 script, and it works without troubles Quote Link to comment Share on other sites More sharing options...
Member kritskiy.001 Posted December 1, 2022 Author Member Report Share Posted December 1, 2022 23 minutes ago, Carlosan said: As example i was testing this old V4 script, and it works without troubles Hm, it doesn't for me. Could you please post the paths you're using? Here are mine: When I run the script: Quote Link to comment Share on other sites More sharing options...
Carlosan Posted December 1, 2022 Report Share Posted December 1, 2022 \Documents\3DCoat\UserPrefs\Scripts\ExtraMenuItems Run first the script via Scripts > Run menu Then close open 3DC and try again from Menu Edit This steps works for me Quote Link to comment Share on other sites More sharing options...
Member kritskiy.001 Posted December 1, 2022 Author Member Report Share Posted December 1, 2022 Aha, works this way, thanks. I have 20 scripts to install so running them one by one for them to work in the menu seems annoying seems like a feature digress 1 Quote Link to comment Share on other sites More sharing options...
Member Solution kritskiy.001 Posted December 1, 2022 Author Member Solution Report Share Posted December 1, 2022 (edited) Ok got an answer from Andrew: the path in the .xml Command tag should be relative to the 3dc Prefs folder. In V4 it's <Command>script:Scripts/ExtraMenuItems/scriptName.cpp</Command> and in 2022 the prefs were moved deeper: <Command>script:UserPrefs/Scripts/ExtraMenuItems/scriptName.cpp</Command> Edited December 1, 2022 by kritskiy.001 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.