question

Rudy Cortes avatar image
Rudy Cortes asked ·

MtoA - How to trigger "update full scene" programmatically

Hello everyone

Does anyone know how to programmatically (through python) trigger the "update full scene" command that shows in the render window , under the "render" menu?

I have been searching through the scripts and reading the source code, but I have not had any luck finding a reliable way to refresh the full scene.

Sincerely.

mtoa
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Sebastien Blaineau-Ortega avatar image
Sebastien Blaineau-Ortega answered ·

By the way, we're still tracking all the situations where IPR fails and forces you to use this option (that shouldn't even exist, and is just there as a workaround).

So if you have any repro cases that don't refresh properly in IPR, please let us know so that we can simply fix them. This way you won't have to use it anymore ;-)

1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Hello there,

The main case where I see this is when I connect or disconnect a transform.worldMatrix attribute into any shading node.

0 Likes 0 · ·
Sebastien Blaineau-Ortega avatar image
Sebastien Blaineau-Ortega answered ·

import maya.cmds as cmds

cmds.arnoldRenderView(option =["Update Full Scene","1"])

Any menu in the renderView can be triggered with the argument -option, by using the exact same name as the menu label (including whitespaces / uppercases, etc..).

A bit more explanations here https://support.solidangle.com/display/A5AFMUG/Arnold+RenderView+Window#ArnoldRenderViewWindow-EditingRenderViewOptionswithMELScripting

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Sebastien Blaineau-Ortega avatar image
Sebastien Blaineau-Ortega answered ·

Sorry, I'm not managing to reproduce the problem, would you be able to send me a simple repro scene with the steps ? if I can reproduce it, it could maybe be solved for next release. Thanks

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.