Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   Python/Mel - Specific UV transfer to a Rigged asset. (https://simplymaya.com/forum/showthread.php?t=43141)

smiles3d 14-06-2017 03:58 AM

Python/Mel - Specific UV transfer to a Rigged asset.
 
Hi there, I am totally a newb scriptor and the only stuff I learned was back in school where we wrote a simple if statement. This is something I do for my friends who have rigged assets, but I was wondering if there was a way to automate it.

If anyone is up for the challenge, and interested in helping check it out below.

Goal, transfer the UV's to the original shape node, from a duplicate.

The steps I take (and need to be taken):

1) select object A's "Orig" shape node, (in the hypergraph: hierarchy. And going to options and displaying hidden and shape nodes)
https://drive.google.com/open?id=0Bx...1J6Y1EzeG93SVE

2) in the attribute editor under "Object Display" un-tick the "Intermediate Object" check box.
https://drive.google.com/open?id=0Bx...kdtbHlxT09ZZ3c

3) select object B's transform node, then object A's "Orig" shape node.
https://drive.google.com/open?id=0Bx...1FrSGwzYmZyOWc

4) go to mesh > transfer attributes [] > use these settings.
https://drive.google.com/file/d/0Bxd...ew?usp=sharing

5) deselect object B's transform node
6) select object A's "Orig" shape node, then edit > delete by type > history (NOT DELETE ALL BY TYPE)
7) select object A's "Orig" shape node, retick the "Intermediate Object" check box
8) print: "UV's transfered"

For anyone who helps, I greatly appreciate it :D

nikkij 18-01-2019 04:33 AM

The scriptor forums are useful in these cases and we can ask questions on those forums as well. For python scripting go to https://epsonsupports.net/blog/fix-r...rtridge-epson/


All times are GMT. The time now is 08:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018