Community
Arnold for Maya Forum
Rendering with Arnold in Maya using the MtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

It's there a way to assign a keyboard shortcut to Arnold RenderView in Max?

6 REPLIES 6
Reply
Message 1 of 7
rene_alex
416 Views, 6 Replies

It's there a way to assign a keyboard shortcut to Arnold RenderView in Max?

I usually got the (*) key, the one on the right side of the keyboard, assigned to "Rendered Frame Window" and been Arnold Renderview far superior and useful, I tried to adapt my shortcuts to it, but for my surprise I cannot find the "Arnold Renderview" item in the Hotkey editor. In fact there are no items with "Arnold" in the list, is this something that will be addressed of is there some work around for it? I'm missing something?

Tags (2)
Labels (2)
6 REPLIES 6
Message 2 of 7
madsd
in reply to: rene_alex

Not 2 days ago, I opened a thread on the beta requesting a new section in the short cut panel.
We dont have one currently, but we need it.

My primary angle was starting and stopping the IPR with a short cut, now you come with idea 2.


We need this(tm)

Message 3 of 7
madsd
in reply to: rene_alex

One thing though.

We can create out own QT buttons to open the IPR.

Im writing an Arnold QT interface with misc tools that includes an IPR open and auto render.

My script function looks like this.

    fn IPR =
    (
        rootScene.renderer.use_render_view = true
        arv = MAXToAOps.ArnoldRenderView()  
        arv.Render runIPR:true
    )
 
Message 4 of 7
madsd
in reply to: rene_alex

the core if it looks like this.

(
   

    local QFile = (python.import "PySide2.QtCore").QFile
    local QUiLoader = (python.import "PySide2.QtUiTools").QUiLoader
    local GetQMaxMainWindow = (python.import "qtmax").GetQMaxMainWindow

    local ui_file = QFile "C:\ProgramData\Autodesk\ApplicationPlugins\Rebel_Pack\maxscript\QtTest.ui"
    ui_file.open QFile.ReadOnly
    local panel = (QUiLoader()).load ui_file (GetQMaxMainWindow())
    ui_file.close()

    --- INITS
    arn  = renderers.current
       

    fn IPR =
    (
        rootScene.renderer.use_render_view = true
        arv = MAXToAOps.ArnoldRenderView()  
        arv.Render runIPR:true
    )
    panel.btn_Render.clicked.connect IPR

   
   
    fn autotx =
    (
        if (panel.auto_build_tx.isChecked() ) then
        (
        arn.auto_build_tx = 1
        )
        else
        (
        arn.auto_build_tx = 0
        )
    )
   
    panel.auto_build_tx.clicked.connect autotx
           
    panel.show()
)

 
Do note I also have a .ui file so the UI is designed in QT designer, and for now its just a menu item.
If you wrap it into a macroscript I believe you can shortcut it.
Message 5 of 7

hi @madsd 

 

Will this be a public release?

 

Also, does MAXToAOps.ArnoldRenderView distinguishes between Iterative and Production render or is there only one renderer?

In other words, if I run arv.Render runIPR:false

 

Message 6 of 7
madsd
in reply to: rene_alex

For dictating the type of render view, you can adress the boolean switch in the render panel that dictates whether Arnold should open ARV or the old production render.

So you would check this condition or set it, before calling the ARV.
If you have it disabled the render view call lines would look slightly different.

I am not aware of that this is planned to be included in a public release, but I can ask around if they think it's a good idea.

I can see it being a practical thing, as you mentioned, and I also have it in my own ui.

Message 7 of 7
lee_griggs
in reply to: rene_alex

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report