Python Expression in Object Merge

   5006   3   1
User Avatar
Member
113 posts
Joined: July 2005
Offline
This is kinda embarrassing because I thought this could be done easily but now I just cannot remember:

How would I create a python expression in the “objpath1” parameter in an Object Merge SOP?

For example, suppose I wanted to merge in the render SOP of a parent object into my current object's geometry. How would I do this?

Thanks
User Avatar
Staff
3465 posts
Joined: July 2005
Online
expression editor (alt+e) ?
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
113 posts
Joined: July 2005
Offline
I was thinking it would be something simple like:

chsop('../grid1')

However it complains about the path, even when

../grid1

works just fine.

I thought maybe

`chsop(“../grid1”)`

would work but Houdini complains that it could not evaluate expression.

Seems easy huh?
User Avatar
Member
9417 posts
Joined: July 2007
Offline
rudeypunk
..
For example, suppose I wanted to merge in the render SOP of a parent object into my current object's geometry. How would I do this?

Thanks
in hscript it would be, which is probably faster to evaluate than python
`opinputpath(“..”,0)`/__render_sop__

python version would be something like:
hou.parent().inputs().renderNode().path()
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links