ZBrushCentral

MelScript to Help with displacements in Maya

Since a lot of folks have been stressing out over getting proper displacements in Maya, I wrote a little MelScript to assist. Basically, it’s VERY rough, and more of a macro than a proper script. Thus, it cannot be run twice (it will error out). Nor do I garuntee it works for everyone. The setup it does, is based on the great tutorial pdf by Scott Spencer. “ZBrush To Maya 32-Bit
Displacement Guide”

Import your obj, select it, and run the script. The script sets up the following: - PolySmooths model 1 iteration to remove tris - Sets object attributes - Creates/Applies SubdApprox Node - Sets SubdApprox Node Spacial, but low... Keeps mrApprox window open for futher editing
  • Creates/Applies basic blinn material with file nodes for displace and bump. Just graph the object’s material in Hypershade and plop your maps into the appropriate file nodes.

    Remember to swtich your renderer to MR. The script doesn’t check for this. Maybe a later version;)

Use this script in a clean scene, at your own risk. It was really just a way to help automate the task of getting a scene set up correctly without having to remember all the steps.

Good luck, and feel free to edit this to your own liking. Andrew

cool this should help a few folks out!! thanks!

Hi Hooper,

Thanks for the scrip, but I am having trouble rendering Bump maps in MR. They don’t show really well. I guess because I scaled the object too much for Displacements to show.

Any idea how to fix this so I can have a working Displacement and Bump map at the same time?

Thanks,
Takroony