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

i. The cube should be sized at 0.1 for all dimensions e.

In the interface for each intersection point, provide the following information:

i. The points position

ii. The position of the points of the intersecting line

iii. The area of the intersected triangle

iv. The distance of the intersecting point to the outer objects vertex

v. The normal vector of the intersected triangle

vi. The angle the intersecting line makes with the grid

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

Students also viewed these Databases questions

Question

1. Are my sources credible?

Answered: 1 week ago

Question

3. Are my sources accurate?

Answered: 1 week ago

Question

1. Is it a topic you are interested in and know something about?

Answered: 1 week ago