How to change default layout in rv?

Hello,

we are using the RV. Currently, when we open RV with the default layout, in the edit tab currently Use Source Cut Infomation and Retime Inputs to Output FPS are default checked. How can I make change in defualt setting of this?

Thanks
Naitik Patel
image

2 Likes

Hi @naitik,

Thanks for posting in the community. We have pinged the RV expert who will get back here soon.

Cheers,
Ben

One option available to you is to implement a custom .rvrc.py in you home directory that sets the layout’s settings as desired. Example below:

.rvrc.py (1.1 KB)

import rv.commands as rvc
import rv.rvui as rvi


def group_member_of_type(group_node, member_type):
    for node in rvc.nodesInGroup(group_node):
        if rvc.nodeType(node) == member_type:
            return node


def initialize():
    rvi.defineDefaultBindings()
    return rvi.newStateObject()


def setup():
    layout_node = rvc.nodesOfType("RVLayoutGroup")[0]
    layout_stack_node = group_member_of_type(layout_node, "RVStack")

    # Disable "Retime Inputs to Output FPS"
    _property = "{}.timing.retimeInputs".format(layout_node)
    rvc.setIntProperty(_property, [0])

    # Disable "Use Source Cut Information"
    _property = "{}.mode.useCutInfo".format(layout_stack_node)
    rvc.setIntProperty(_property, [0])

Thanks for your reply,

I have just one question what do you mean by in home directory?

Thanks
Naitik Patel

Depending on your operating system, your home directory is usually located at:

  • Windows: C:\Users\[username]
  • macOS: /Users/[username]
  • Linux: /home/[username]

For example, on my mac, the file would reside here: /Users/collinbanko/.rvrc.py

Thanks for your reply.

When I put that file into home directory, it is working fine. But can I put that file into other location and set any environment variable to execute that file while open rv.

Thanks
Naitik Patel