Skip to content

V3du4rd0/MW-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MW-translator

Maya-Wolfram translator (minimal area optimizer)

This Python script can be used to extract the data of a triangulated polygon in Maya, send it to a Wolfram script execution and recover the output to send it back to Maya.

This code was conceived to call Wolfram's Douglas-Plateau problem solver and create minimal area patches in Maya.

To run this code you need to:

  1. Select (in object mode) a triangulated mesh in your Maya scene.

  2. Modify the variable "func" in line 70 (minimalOPT_v01.py), this variable must contain the wolfram script as a string. The "Implementation" section in Wolfram's post includes all the required code (you only need to copy and merge everything as a single string preserving the Wolfram syntax).

  3. Use Maya Script Editor to run the modified python code.

Note: Please check Wolfram's post , there are some conditions that your model and some parameters must hold --face size, stepsize_, steps_, etc--.

You can find an obj file inside "Test" directory. Import this file in Maya to get four working models (see the pictures below).

c

ch

sh

About

Maya-Wolfram translator (minimal area optimizer)

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages