| Item | Quantity | Price |
|---|
| Your cart is empty. Check out our collection of 3d models! |
Prices in:
Clear Cart
Home » Forums » Maya Boards » API » A problem about the Maya API "splitUV" example Topic 47 of 2662
| Item | Quantity | Price |
|---|
| Total | $0.00 (USD) | ||
| Your cart is empty. Check out our collection of 3d models! | |||
Prices in:
Clear Cart
| Name | Downloads |
|---|---|
TrueGlass |
845,848 |
detachSeparate.mel |
837,131 |
The Andy Rig |
617,678 |
Sergio |
467,158 |
LWOImpR4-R5_043 |
431,545 |
Tiny |
339,502 |
Smedge .6 |
208,192 |
Ocean Shader |
183,736 |
silver shader |
179,839 |
At The Sea |
163,200 |
| Name | Contributions | Posts |
|---|---|---|
| humster3d | 2152 | 2 |
| squir | 1303 | 0 |
| Pupuhol | 967 | 0 |
| KanhtArt | 857 | 0 |
| GuamWork | 854 | 0 |
| admin | 778 | 21231 |
| rose studio | 655 | 0 |
| stefano tartarotti | 616 | 0 |
| VKModels | 445 | 1 |
| fileadmin | 424 | 0 |
Hi everyone,
I met a weird problem about the Maya API "splitUV" example. Can anyone help me?
The situation is like this:
I create a 3 x 3 polygon plane and delete its history, and then I give it some tweak by moving one vertex position, and then I choose a UV and execute splitUV command.
After that, the strange thing happens: the tweak apply twice!!!
It is easy to see because splitUV command shouldn't change the mesh shape, it should only change its UV right?
I checked the Maya API guide and read the polygon API section where the splitUVCmd example is in, and found a paragraph in the polyModifierCmd example: "But if you connect it as is, you would expect the resulting mesh to have double the tweaks... There is a large segment of code that is commented out in processTweaks() that removes the tweaks from the mesh node..."
So I tried uncommented that segment of code, but the result is, it behaves normal after I execute the splitUV command, but the tweak apply twice once I undo the command!!!
I then examined the codes carefully and I think the problem is in this line of codes:
dgModifier.undoIt();
in the polyModifierCmd::undoCachedMesh() function.
But I couldn't find a solution so can anybody help me here?
I'm using Maya 2012 and VS2008.
A lot of thanks!
Daniel Chen