broadzuloo.blogg.se

Polytool elements
Polytool elements










#POLYTOOL ELEMENTS CODE#

The code may benefit from some cleanup to make it consistent and easier to follow in a few places should any bug fixes be required. The code does have some comments, but it would help to have more.ĭue to the good design of the code into small separate functions, the code could well be reused in other ways as the functions are available to be called directly without going through the user interface. The code does not include any information about how it is to be used, but does follow the standard “source scriptFileName” MEL paradigm. The user documentation points to a link that no longer exists is unfortunate, since I feel that it would help share some insight into what is happening in the code. The use of whitespace is inconsistent in terms of indenting and spacing. The function names vary between camelCase and PascalCase, but are still somewhat logical. The comments are not entirely consistent with the code, and a number of forward slashes are used to separate parts of functions. The code initially makes use of larger header and footer comments to distinguish between functions, but does not follow this consistently throughout the code. This makes the code especially hard to read when it is a few nested levels deep and all the brackets for the nesting are in the same leftmost column. The code unfortunately is quite difficult to read in some places due to spacing and some of the inconsistencies with indentation (or in some cases, no indentation). Some of the code looks like it could be broken down into a few more logical pieces (such as those that get the selection and filterExpand), but otherwise shows minimal code duplication. The design is not tightly coupled to the interface and does well to avoid the use of globals or state information and almost runs entirely as stateless functions. More of a nice to have would be if the script checked if the menu was already created before attempting to create it again.Įach element of the menu is broken up into single functions and supported by smaller helper functions in a logical manner.

polytool elements

Helping the user with some more messages will increase the usability of the tool. The functionality of the tools when the selection is done right, but does not offer the user much feedback when they do something wrong. The code creates a number of quick and easy to use tools in a straight forward menu. This is a script creates a menu with of mesh manipulation tools including:Įxtrude Vertices ( Seperated / Together )Ĭhamfer Vertices ( Seperated / Together )

polytool elements polytool elements

Continuing on with the creative crash site today, I wanted to continue a bit more with some asset creation tools, so downloaded the popular MJ Poly Tools by Mikkel Jans:










Polytool elements