Hello there,
I know that I can use ch() function to get current value of a certain channel.
But how can I get the default value instead of current value?
How can I get the default value of a channel in expression?
3131 3 0- cm y
- Member
- 1 posts
- Joined: April 2015
- Offline
- Dean_19
- Member
- 319 posts
- Joined:
- Offline
There might be a better way, but I managed to get at it with Python using parmTemplate:-
#Node which has the parm you want to get default of
n = hou.node(“/obj/geo1/attribwrangle4”)
#Get the default ('count' is just the name of the parm I am grabbing)
default = n.parm(“count”).parmTemplate().defaultValue()
#return the value
return default
#Node which has the parm you want to get default of
n = hou.node(“/obj/geo1/attribwrangle4”)
#Get the default ('count' is just the name of the parm I am grabbing)
default = n.parm(“count”).parmTemplate().defaultValue()
#return the value
return default
- PradeepBarua
- Member
- 443 posts
- Joined: Sept. 2012
- Offline
- Dean_19
- Member
- 319 posts
- Joined:
- Offline
-
- Quick Links