Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions