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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started