Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

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

rene_alex
Enthusiast

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

rene_alex
Enthusiast
Enthusiast

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?

0 Likes
Reply
788 Views
6 Replies
Replies (6)

madsd
Advisor
Advisor

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)

madsd
Advisor
Advisor

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
    )
 
0 Likes

madsd
Advisor
Advisor

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.
0 Likes

Haider_of_Sweden
Collaborator
Collaborator

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

 

0 Likes

madsd
Advisor
Advisor

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.

0 Likes

lee_griggs
Autodesk
Autodesk
0 Likes