boner-cmd / asset-spacer Goto Github PK
View Code? Open in Web Editor NEWA simple script in Maya Embedded Language (MEL) to spread out bulk-imported assets for easy viewing.
License: The Unlicense
A simple script in Maya Embedded Language (MEL) to spread out bulk-imported assets for easy viewing.
License: The Unlicense
Need to write a MEL script to act as a test suite (generates different scenarios, checks for position of each item to determine if it was successful)
Increase spacing declaration input, maybe x3 wide
Need to explore dimensionality info to see if there is a programmatic way to check and warn the user if the objects are too large to space using the specified spacing amount at the given scale... maybe even recommend the correct scale appropriate to the desired spacing amount?
Script currently does not detect groups. Additional testing required to uniquely identify groups as the target of the script, although potentially wontfix
Need to blank out variables on window close
Spacing can remain un-updated if cursor is still active in spacing field when go button is pressed. Force update of all variables before executing process
Need to clean up UI before progressing, pop-up window is all kinds of messed up.
Merging #13 messed up UI again. Need to look over it again.
Add radio buttons so the resulting matrix is not necessarily roughly square but instead can be roughly rectangular according to user preference
Vertical Spacing (layout down Y instead of Z)
Useful for displaying screenspace of straight-on assets
Revealed during #22, despite trying to delete old window instances, new windows were not updating their attributes correctly. Needs investigation.
While the script was only designed to handle one group at a time, running the script on different groups when more than one group is present should overlap them, around or centered on the origin. Testing revealed that if a second group is created, it shows abnormal behavior. Needs investigation.
Currently top left corner of matrix is at 0,0. Need to add a checkbox option to roughly center the resulting matrix near 0,0 to improve aesthetics for those who prefer it
Radio box/toggle for ignoring "Hidden" objects when applying the sort
Centering should base its offset, rather than on the "perfect" center, instead based on the center of an ideal object of the given ratio (i.e. a square matrix of 8 items should have the same centerpoint as a square matrix of 9 items. Possible solution, center each object as though centering an object of x * z?
I.e. if x row limit is 3 and shape is 1:1, if zcount reaches 3 before running out of items, then shift the entire offset by that of a the square of 3x3
For a clearer example, if 2:1 and x row limit is 4, center resulting matrix as though centering 8 items (4x2), even if the actual total number of items is 5, 6, or 7.
This may perform worse for non-identical objects (but unsure), where the attempt at idealized code is superior, but it would certainly improve consistency for objects like the unit cubes used for testing.
Use file browser to add the content pack from file, automatically group it, name the group, and then act on the group according to dialog options
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.