Jump to content
3DCoat Forums

[SCRIPT] Search for volume 2022


ajz3d
 Share

Recommended Posts

  • Contributor

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

  • Like 2
Link to comment
Share on other sites

  • Carlosan changed the title to [SCRIPT] Search for volume 2022

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...