Question: Use Mayas Python API and technical programming methods in Python to do this assignment. Find the point of intersection between vectors taken from an outer
Use Mayas Python API and technical programming methods in Python to do this assignment. Find the point of intersection between vectors taken from an outer objects vertices to its pivot, and an inner object. The, place a small cube on each point of intersection.
Steps:
Make a scenario in Maya: i) Place a shape within another shape ii)pivots will be in the middle
Create an interface: i) You need one button to trigger script and a text component
Have a func called findPoint() which is attached to the button you created in the interface
In findPoint():
a. Make sure only two objects are selected by the script
i. First object selected is the reference object
b. Using the outer object as the reference, create lines using the outer objects pivot and each of the outer objects vertices
c. Determine the intersection point of each line with the inner object
d. Place a new cube at the middle of the intersection point
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
