• Welcome to World Machine Community. Please login or sign up.
 
May 21, 2019, 02:12:09 am

News:

Read the Development Diary for an inside look at World Machine's progress!


[Beta Release] Python multiple .obj importer for Maya (v0.5)

Started by smb3d, May 14, 2015, 04:55:43 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

smb3d

Hi,
I wanted to share a script that I've been working on for a little while to help make the importing of mulitple .obj files into Maya easier. It started as a script to automate the importing and rotation of several hundred tiled .objs, but grew into something with a bit more utility, so I thought I would add a few more options and share.

So here's what it'll do:

Import .objs from a folder (currently the only way it operates, I'm going to add to this soon)

Rotate, Translate and Scale the geometry (good for correcting world machines Z-up)

Soften the normals

Normalize multi-tiled UVs and optionally put that in a new UV set ( useful for using multi-tile images for masks etc. but a single high res image for color such as a satelitte image)


If you want to use the normalize UVs option, then you need to tell it the number of x and y tiles you output from world machine.
Currently using the secondary UV set needs to be manually setup in maya, but I'm going to add this to the script soon too.

http://smbell.com/misc/worldmachine/multiObjImporter.rar





WFab

Although I no longer use maya, this would be immensely useful. Keep us updated @smb3d!

ashraful_mobin

Hi, thank you for sharing this great script! very helpful!
It adds a suffix"_Obj" to all imported objects! it is not that always wanted. Please add a suffix on/off check box :)

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

Name:
Email:
Verification:
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S save/post or ALT+P preview