Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Sign in to follow this  
Followers 0

How to apply "global" settings in takes?

In order to isolate lights and reflection panels I need for single render passes I use takes to isolate/activate certain these and disable all other lights and geometry which isn't needed. So, now I'm able to see and judge what certain light settings, positions, rotations do to the overall look of the scene. The problem, all settings are grayed out and I need to include these settings in the take, BUT I want these settings to apply to all takes and the main take. How do I do this in the most practical way? Is there a "mode" in which everything isn't grayed out and the settings I apply also change in the main take and all sub takes? Right now I switch back to "Main", apply the settings, go back to my take and render. NOT - VERY - EFFICIENT.


Share this post

Link to post
Share on other sites

Hi Tom,

i made a python script to "push" take values back to the root take. I find it rather handy - if you have an override you want to make global, right click and send it back to the main take.

You'll need to save this into a "PARMmenu.xml" file somewhere on your houdini path (eg C:\Users\cgardner\Documents\houdini15.5\PARMmenu.xml).

When you restart houdini, you *should* get a "push override" item in the parameter right-click menu when you're in a take.


<?xml version="1.0" encoding="UTF-8"?>
<scriptItem id="pushOveride">
<label>Push Override</label>
<expression>hou.takes.currentTake() != hou.takes.rootTake()</expression>

parms = kwargs['parms']
if parms:
    parm = parms[0]
    pt = parm.tuple()
    ctake = hou.takes.currentTake()
    for p in ctake.parmTuples():
        if p == pt:
            keyframes = {}

            for parm in p:
                if parm.keyframes():
                    keyframes[parm.path()] = parm.keyframes()
                    if parm.parmTemplate().type().name() == 'String':
                        if parm.unexpandedString():
                            keyframes[parm.path()] = parm.unexpandedString()
                            keyframes[parm.path()] = parm.eval()
                        keyframes[parm.path()] = parm.eval()

            rootTake = hou.takes.rootTake()
            updateMode = hou.updateModeSetting()

            for k in keyframes:
                if type(keyframes[k]) is tuple:
                    for key in keyframes[k]:






Edited by doctorbob
2 people like this

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0