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
[hou] Setting geo's shop_geometrypath parm
1700 2 1- nicholas_yue
- Member
- 301 posts
- Joined: July 2005
- Offline
- are2d2
- 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?
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?
- nicholas_yue
- Member
- 301 posts
- Joined: July 2005
- Offline
-
- Quick Links