Contributor ajz3d Posted May 26, 2014 Contributor Share Posted May 26, 2014 ajz_searchForVolume DESCRIPTION: The script will select a volume with a name matching the text entered by the user. Useful in complex scenes with a long VoxTree with a deep hierarchy. INSTALLATION: Unpack everything to %USERPROFILE%\Documents\3D-CoatV4\Scripts\ExtraMenuItems and restart 3D Coat. USAGE: You will find the script here: Edit->Search for volume. Enter some text into the text field and press the Search button. 3D Coat will select the volume provided you enter its exact name. Exit the window with the OK button. LIMITATIONS: Yeah, you read right: "Its exact name". And case sensitive too. I couldn't figure out how to walk around this problem without spending too much time on it. An obvious solution would be to use RegEx, but I couldn't find any information on whether AngelScript supports it or not. The UI available for the script engine doesn't allow for implementation of dynamic search so you will need to confirm your input by leaving the text field and clicking the Search button. If your VoxTree is very long, then you might need to scroll the VoxTree window to see it. It's not possible to script in automatic scrolling. If several volumes share the same name, the uppermost will be selected. I could add a button that would select the next volume of the same name, but it would have to iterate through the VoxTree and this is currently very slow in 3D Coat. Plus it's a rare (and a bad) thing to have multiple objects with the same name, so I decided not to do it. ajz_searchForVolume.zip 2 Quote Link to comment Share on other sites More sharing options...
Carlosan Posted June 13 Share Posted June 13 To make it working for v 2024 change this line: On 12/1/2022 at 10:33 AM, kritskiy.001 said: 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> 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.