Question: Create a Maya Script in Python using the Maya API. Create a UI that will do the following: 1. Encapsulate one object within another (ex:

Create a Maya Script in Python using the Maya API.

Create a UI that will do the following:

1. Encapsulate one object within another (ex: cube within a cylinder), make sure the objects have been selected.

a. Assume whichever object is selected first is the reference object

b. Hint: The command ls(selection=True) will return the objects as they were selected so the last one selected is the last one in the list

2. Using the outer object as the reference, create lines using the outer objects pivot and each of the outer objects vertices

3. Determine the intersection point of each line with the inner object

4. Place a new cube at center of the intersection point

a. The cube should be sized at 0.1 for all dimensions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!