christopher hanson

chanson78

About Me

Expertise
Freelancer
Location
Germany
Website

Connect

Recent Forum Posts

Turn on Red Blue Green Input Transform Parameter Window Nov. 24, 2020, 2:05 p.m.

deviner
Hey, It seems to show those only if you set a keyframe

No keyframes here. They only show on the obj level but not in the sops level. It would be convenient for example with the transform sop in the sop level.

Turn on Red Blue Green Input Transform Parameter Window Nov. 24, 2020, 11:03 a.m.

Where do I enabled the red green and blue lines in the inputs for rotate and translate in the transform parameter window? I can't find this anywhere.

Python Startup Script Help July 11, 2020, 5:03 a.m.

Hello

Just took a crash course in some simple startup script using python, basically a cut and paste job with some minor tweaks. When I install my script and open Houdini the camera node and geo node open up on top of each other, making it that I have to move them around every time I open a new file. I want them to open up like the Redshift ROP and IPR using “moveToGoodPosition” but I am not sure how to do this. I do what I think makes sense but then get an error when opening Houdini. Again, I know very little of python.

#!/usr/bin/env python

# Create Camera - 1920
def create_camera():
node = hou.node('/obj').createNode('cam', ‘cam_1920’)
node.setParms({'resx': 1920, ‘resy’: 1080})
node.setDisplayFlag(False)

# Create Geo Node - Geo
obj = hou.node(“/obj”)
geo = obj.createNode(“geo”, node_name=“Geo”)

# Create Mantra - PBR driver
def mantra_driver():
node = hou.node('/out')
out = node.createNode('ifd')
out.setParms({'vm_renderengine': ‘pbrraytrace’, ‘override_camerares’: True, ‘camera’: ‘/obj/cam_1920’})

def redshift_driver():
node = hou.node('/out')
node.createNode('Redshift_ROP').moveToGoodPosition()
node.createNode('Redshift_IPR').moveToGoodPosition()

def main():
# Check for camera node
nodes = hou.node('/obj').glob('*')
cam_exists = False

for node in nodes:
if node.type().name() == ‘cam’:
cam_exists = True
break

if not cam_exists:
create_camera()

# Check for Mantra or Redshift ROPS
rops = hou.node('/out').glob('*')
rrop_exists = False
mrop_exists = False

for node in rops:
if node.type().name() == ‘ifd’:
mrop_exists = True

if node.type().name() == ‘Redshift_ROP’:
rrop_exists = True

try:
if not rrop_exists:
redshift_driver()
except:
hou.ui.displayMessage('Oops! Something went wrong. Unable to create Redshift ROP.')
if not mrop_exists:
mantra_driver()