[Sidefx-houdini-list] Calling a parameter's menu script from another parameter or python script

Graham Thompson captainhammy at gmail.com
Tue Nov 30 23:02:27 EST 2010


Alternatively you can do a hou.Parm.pressButton() or opparm -c to also
cause a recook, though I think it is a double recook in this case.

On Tue, Nov 30, 2010 at 7:58 PM, Graham Thompson <captainhammy at gmail.com> wrote:
> Without changing your menu's value you can trigger a menu cook by
> calling menuItems().  This returns a tuple of the menu items but first
> it cooks the menu again.  For example, I have a script that just
>
> Menu Script for parm:
>
> print "cooking menu"
> x = [0,0,1,1,2,2,3,3]
> return map(str, x)
>
>
>>>> p=hou.parm('/obj/geo1/null1/parm')
>>>> p.menuItems()
> cooking menu
> ('0', '1', '2', '3')
>
> On Tue, Nov 30, 2010 at 7:00 PM, Reza Ghobadinic <rezagn at gmail.com> wrote:
>> Hi,
>>
>> Does anyone know how to trigger a parameter to run its menu script from
>> another menu script code or just another python script code inside a digital
>> asset node?
>>
>> cheers,
>>
>> --
>> Reza Ghobadinic
>>
>> "An idea not coupled with action will never get any bigger than the brain
>> cell it occupied"
>> _______________________________________________
>> 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