Jump to content

Changing the defaults of Node parms (autoscope, on created)


Recommended Posts

Hi, please. I don't like, that the default state of the autoscope of TRS parameters is set to True, even when they are not animated. I have a script (below) and I run it on ~100% of the newly created Geo nodes.

I am afraid to touch the "original" nodes. Please, what would be correct (and future safe) way to change the default state of the newly created node?

 

scoped.PNG.b40015003796a573d0bf4a26e9cd621d.PNG

 

def autoscope_off () :
    default_autoparms = ["tx","ty","tz","rx","ry","rz","sx","sy","sz"]
    for node in hou.selectedNodes() :
        for autoparm in default_autoparms:
            try:
                parm = node.parm(autoparm)
                parm.setAutoscope(False)
            except:
                print "parm [" + autoparm +"] doesn't exist"

 

Link to comment
Share on other sites

Hello,

Create a new node change the settings to the default you would like, and then go to the gear menu in the parameter dialogue and save the "Permanent Default". Do not worry this does not change how it "Permanently" it will save an .idx file in your personal preference. You can remove or move that .idx from your personal preference to anywhere in the $HOUDINI_PATH in order to distribute it through out your project. There are even are even more zanier ways to change the default preference, but that is the most robust and simple in most cases.

-Ben

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...