API Example Bug: Maya API polyModifier.py splitUVCmd.py example does not work properly with tweaks. Fix needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
In the Maya API documentation, the example splitUVCmd.py which utilizes polyModifier.py factory base class does not handle tweaks properly when using redo and undo.
This is the only example provided in the documentation for writing mesh modification plugins however it does not work properly.
When you undo and redo the command, the generate tweak node is not reinserted back onto the end node.
It's a complex example, and honestly I don't understand it fully.
The problem is there is no tweak cleanup function provided, its incomplete. When redoing the command the tweaks are applied twice.
Can someone at autodesk at least fix the provided official example files?
To reproduce:
run splitUVcmd.py plugin
with polyModifier.py also in the same directory
use it on UV that have tweak data associated with them
try undo/redo
see that tweak deltas are applied more than once