A Subjective Vision of Life

  • Archive
  • RSS
  • What's Up?
banner

Transfer UVs from one object to multiple objects MAYA

This past week I’ve been painstakingly UVing in maya some hard surface models that I’ve modeled for a new project I’m working on. One thing I found is that having a lot of repeated objects (for example buttons) transfering the UVs from one to the other was easy enough. Just go to Mesh > Transfer Attributes > Option Box and with the default options just change Sample space to Component in the Attribute Settings Tab and your set to go.

The problem comes when you have a million objects. You can’t do it in one go… You have to go object by object and do the same steps over and over again.

Luckily with the magic of python I wrote this trivial script that will do this for you. Just select the first object that has the correct UVs an then select all the other ones that you want to transfer the UVs to. 

You’ll turn this:

into this:

With the click of a button (that button being the script in your shelf :D)

Well These next lines are what do it, you’ll see it’s so trivial that you’ll say I could’ve come up with that… :D So if you wanted here it is for you!

import maya.cmds as cm

#grab all the selected objects

selectedObjects = cm.ls(sl=True)

#save first one into variable

#pop first one out of the selected objects list

driver = selectedObjects.pop(0)

#for each object in the selected objects list

for object in selectedObjects:

    cm.select([driver,object])

    #transfer attributes

    cm.transferAttributes(sampleSpace=4,transferUVs=2, transferColors=2 )

That’s it for today folks if you want to check more Programming stuff for maya just visit my programming portfolio or at nestorprado.com

Enjoy!

    • #Maya
    • #uvs
    • #python
    • #code
    • #script
  • 8 months ago
  • 2
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+
'\x3ciframe src=\x22http://player.vimeo.com/video/47116036?title=0\x26amp;byline=0\x26amp;portrait=0\x26amp;color=ff9933\x22 width=\x22500\x22 height=\x22218\x22 frameborder=\x220\x22\x3e\x3c/iframe\x3e'

Facial tracking with Face Shift and Microsoft Kinect

Initial tests with Face Tracker and the Microsoft Kinect - The 3D Model adapts itself to the user’s face via a brief configuration process, tracking various facial features and recognizing gestures such as pursed lips or raised eyebrows, as well as independent eye tracking. This data can be broadcast via OSC, and the program can be configured to run with Maya.

This looks like some amazing tests from the people at Süperfad. 

    • #Süperfad
    • #facial capture
    • #kinect
    • #motion capture
    • #OSC
    • #Maya
  • 9 months ago
  • 2
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Custom shelves and Marking menus in Maya on a Mac OSX Lion

The other day I was setting up my Maya 2012 Prefs on my new Mac and I was going crazy trying to find the prefs folder that maya has to set up your shelves and marking menus if you have any custom ones.

So the deal is that basically that folder is in a directory that in Lion is hidden by default… so basically you have to set up Finder to display hidden files and then you can put them in there.

To make finder see hidden folders you can open up a terminal and type:

defaults write com.apple.Finder AppleShowAllFiles YES


And then relaunch Finder. When you do you’ll see that all the hidden folders are now accesible:

Then you can navigate to your maya prefs folder and deposit what you need on it:

/Users/<you-userName>/Library/Preferences/Autodesk/maya/2012-x64/prefs


Once you are done you can use the command that you used before in the terminal with NO instead of YES to restore the look of your finder. Or if the look of a unix folder system doesn’t scare you just leave it.

Hope this helps!

    • #maya
    • #mac osx lion
    • #prefs folder
    • #tutorial
  • 11 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

LCMT: Light Contribution Management Tool v 3.3 vol. II

Here is the second part of the LCMT series! For those of you who didn’t read the first post, LCMT is a little utility tool that helps lighters in maya manage the contribution of the lights or light groups in their scenes. 

It also lets the artist easily create render layers in maya with these different light groups and/or lights.

This next video shows some more of these capabilities. Specially managing the light contribution of the different lights in the scene and the render layer creation phase.

I hope you find this helpful and hope that you might want to know more about it or even try it. If so go on to the LCMT v 3.3 page and read all about it’s functionalities and advantages that are current implemented in this release.

    • #LCMT
    • #maya
    • #lighting
    • #vfx
    • #scad
    • #python
  • 11 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

LCMT: Light Contribution Management Tool vol. I

Hi there! The summer is starting and I just finished my first year at the Savannah College of art And Design. 

In these couple of weeks I want to talk about some of the work that I’ve done in this last quarter. The first thing I want to talk about is the LCMT.

LCMT stands for Light Contribution Management Tool. It is basically a tool for lighters that use Maya to light. The main premise of the tool is allowing the artist to take full control of his lighting setup and having the ability to clearly and easily view and modify the contribution of each light in the scene or the different groups of lights in the scene.

Here is a little video showing it’s functionalities. 

Next post will also talk about LCMT and will give more insight about how it works with another video and where you can find all about it!

    • #LCMT
    • #Maya
    • #Python
    • #Lighting
  • 11 months ago
  • Permalink
Share

Short URL

TwitterFacebookPinterestGoogle+

Logo

About

This is a space for reflection, inspiration and quite about anything I feel worth sharing.
more @ nestorprado.com

Me, Elsewhere

  • heavenideas on Behance
  • @heavenideas on Twitter
  • heavenideas on Vimeo
  • heavenideas on Flickr
  • Linkedin Profile
  • nestorprado on github

Twitter

loading tweets…

Top

I Dig These Posts

See more →
  • Photoset via photojojo

    Michal Karcz is a Polish photographer creating some of the most beautiful photo manipulations we’ve ever seen! The vast majority of his images...

    Photoset via photojojo
  • Video via ericalba
    Video

    The First Colour Moving Pictures at the National Media Museum (by nationalmediamuseum)

    Video via ericalba
  • Photoset via photojojo

    If you find yourself in a situation where a flash is necessary, sometimes it’s better to “bounce” that flash off of a surface so your subject isn’t...

    Photoset via photojojo
  • Photo via moretong

    “24 Solar Terms of China-Da Shu”

    Photo via moretong
  • Photo via moretong

    “24 Solar Terms of China-Li Chun” typo design for voicer.me

    Photo via moretong
  • RSS
  • Random
  • Archive
  • What's Up?
  • Mobile
Effector Theme by Pixel Union