Maya Plugin - Grass Creation
This video shows the incorporation of the Python code for the Maya plugin I have created. I created two inputs and one output in the node class titled “GrassNode.” It then takes the information and intializes it as “input_amount”, input_angle”, and “output.” The code also creates a cube with specific vertices that is shaped like a grass blade.
The node is automatically created upon initializing the plugin and it allows the user to input both an amount and an angle. The amount will replicate the object and create more grass blades. The user can also choose the angle that they want the grass blades to be pointed at, and this chooses how close the further out blades to the center one. They are all created at different lengths in order to replicate the look of grass.
