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

Reza Ghobadinic rezagn at gmail.com
Tue Nov 30 23:01:31 EST 2010


Thanks Graham.

I also found the method pressButton() in hou.parm class that make the
parameter run its callback script.

Cheer,


On Wed, Dec 1, 2010 at 2: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
> >
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



-- 
Reza Ghobadinic

"An idea not coupled with action will never get any bigger than the brain
cell it occupied"



More information about the Sidefx-houdini-list mailing list