Problem with custom shape geometry refresh in viewport 2.0 and parallel mode

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I'm new to Maya and I have a problem with my custom shape update in viewport 2. The problem seems to be with the synchronization of geometry between the DG shape node and Maya hardware renderer ( viewport2.0 only ). For some reason my geometry override callbacks ( updateDG/updateRenderItems/populateGeometry ) are not called consistently.
Basically I have the following setup:
1. Create a sphere
2. Animate sphere's radius to increase between frame 1 and 20 (keys are set on the radius attribute)
3. Create MyMayaShape node and wire the sphere shape into inputMesh attribute
4. When scrubbing the timeline back and forward MyMayaShape geometry is not updated properly in the viewport.
I'm adding some code for my custom shape that reproduces the problem. This is when using both parallel or serial evaluation modes and viewport 2. With legacy viewport everything updates correctly