I would look into the commands refresh, and evalDeferred
I expect one (or both) of them will get you what you want.

On Thursday, 15 March 2018 06:58:09 UTC+11, Shobhit Khinvasara wrote:
>
> I am using Maya 2017.
>
> On Wednesday, March 14, 2018 at 12:57:25 PM UTC-7, Shobhit Khinvasara 
> wrote:
>>
>> Hey everyone,
>>
>> I am currently writing a rig/deformation testing tool for Maya, where the 
>> user first defines the screen capture area and then the tool goes through a 
>> dictionary list of Objects, Attributes and Values, changes the camera to 
>> the view you set and takes a screenshot. Currently I am running into an 
>> issue where the screenshot capture happens but I don't see any change in 
>> the viewport, even though printing a getAttr for the value before taking 
>> the screenshot is what you expect. I feel that the screenshot happens 
>> before the viewport updates and introducing time.sleep before and after 
>> taking the screenshot doesn't help. Any clues?
>>
>> I can post code snippets on demand.
>>
>> Thanks Everyone!
>> Shobhit
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/be9a3a57-6e8e-4e41-aa23-dce363d800a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to