Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This will allow you to assign shaders to objects.
Say you have 20 shaders and 20 objects, and assigning a shader to an object might take some time. This script will do it for you.
I made these scripts when creating a set of 50 different asteroids.
And assigning a shader to each asteroid, parenting the shaders child place3dTexture and have it fit to the object, so that when a asteroid rotates the texture is fit to it, and verifying that everything is correct took me about 2 days. Huuu...
But now it can be done in a few seconds.
I created a shader, duplicated it 49 times, and made some minor changes in its every child texture. Took a little time.
Then used these scripts and viola!
All 50 asteroids got their own assigned shader fit to em.
Then I just made a huge 1000 particle instance field, with the set of 50 asteroids :-)
Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.