[Sidefx-houdini-list] Using HDK to get a constant parameter on a SOP

Harry Biddle hb at dneg.com
Fri Jul 5 04:49:38 EDT 2013


Hi Miles,

Thanks for the suggestion! I look through the examples and gave this a 
go. It greyed out the parameter in the UI, but unfortunately was still 
editable from the python shell, and it tended to keep the value that it 
the scene was saved with, rather than the desired value that the scene 
is opened in.





On 03/07/13 23:36, Miles Green wrote:
> sorry you should pass a bool to enableParm..
>
> enableParm("version", false);
>
>
>
> On 04/07/13 08:34, Miles Green wrote:
>> Hi Harry,
>> why not disable the parm in the hdk with:
>>
>> enableParm("version", off);
>>
>> there are a few examples in the hdk:
>> http://www.sidefx.com/docs/hdk12.1/_s_o_p___flatten_8_c_source.html#l00089
>>
>> http://www.sidefx.com/docs/hdk12.1/_s_o_p_2_s_o_p___flatten_8_c-example.html#a26
>>
>>
>> Miles
>>
>>
>>
>>
>>
>> On 03/07/13 19:31, Harry Biddle wrote:
>>> Hi guys,
>>>
>>> I've been trying to build a SOP in C++ land that has a constant string
>>> parameter on it---I'm using this to display the version number of the
>>> SOP.
>>>
>>> I can do this with a PRM_STRING or PRM_LABEL, setting a default on
>>> compile-time. But it ends up as a node parameter, that gets saved along
>>> with the scene, and can be overwritten by the user!
>>>
>>> Does anybody know if there some kind of a flag that says 'this label is
>>> constant; its value can never be changed from the default value'?
>>>
>>> Thanks,
>>>
>>> Harry
>>> _______________________________________________
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



More information about the Sidefx-houdini-list mailing list