[hou] Setting geo's shop_geometrypath parm

   1699   2   1
User Avatar
Member
301 posts
Joined: July 2005
Offline
Hi,

Does hou/HOM allows one to set the shop_geometrypath in hython ?

I can set other parm but not those in the Render tab

aGeoNode = hou.node('obj').createNode('geo',run_init_scripts=False)
aGeomPath = aGeoNode.parm('shop_geometrypath')
print(aGeomPath)

returns None

Cheers
Nicholas Yue
User Avatar
Member
79 posts
Joined: April 2011
Offline
Hey Nicholas,

yep it's easy!

n=hou.node('/obj').createNode('geo') #not sure why you're forcing the init scripts to be false in your example?
n.parm('shop_geometrypath').set('/obj/blah')
print n.evalParm('shop_geometrypath) # or n.parm('shop_geometrypath').eval()
/obj/blah

I'm also not sure why when you typed:
aGeomPath = aGeoNode.parm('shop_geometrypath')
print(aGeomPath)

you got none…

if I type:

print n.parm('shop_geometrypath')

I get :
<hou.Parm shop_geometrypath in /obj/geo1>

aha… it's your run_init_scripts=False… why are you doing that?
User Avatar
Member
301 posts
Joined: July 2005
Offline
are2d2
Hey Nicholas,


aha… it's your run_init_scripts=False… why are you doing that?
I wanted to create an empty Geo.
I have since omitted the run_init_scripts parm and deleted the child content instead.

Cheers
Nicholas Yue
  • Quick Links