[Sidefx-houdini-list] adding shelf tools to scene using hscript

Graham Thompson gthompson at sidefx.com
Tue Jun 10 20:02:57 EDT 2008


There currently isn't any way to execute shelf tools other than the 
shelf/tab menu so your best bet is to just recreate the necessary parts 
of the tool in Hscript.  An external python script similar to the code 
in the shelf tool could also be used but it would take some modification 
due to the fact kwargs would not be available. This is an existing RFE, 
#29495


Jerry Corda-Stanley wrote:
> More tahn likely. I was just being lazy and wanting a short cut to the
> tool that aleardy exists.
>
>
> ----- "Michael Goldfarb" <goldfarb at coredp.com> wrote:
>   
>> isn't it just creating a generic light and setting some params with
>> newnode.parm("light_type").set('area')
>> newnode.parm("areashape").set('env')
>> etc
>> ?
>>
>> so you could do an opadd and then an opparm
>> opparm . light_type (3) areashape (4)
>> etc
>>
>> ?
>>
>>
>>
>>
>> Jerry Corda-Stanley wrote:
>>     
>>> Hi
>>>
>>> How do I go about adding shelf tools (e.g. lights) into a houdini
>>>       
>> scene using
>>     
>>> hscript?
>>>
>>> I see the shelf tool actually runs a little script to set the hlight
>>>       
>> object
>>     
>>> to an envlight, for example. I was wanting to do an opadd, and have
>>>       
>> the envlight
>>     
>>> created for me rather than a generic light.
>>>
>>> Cheers
>>>
>>> Jerry
>>> _______________________________________________
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>
>>>
>>>       
>> -- 
>> .......................................................................
>> Michael Goldfarb                            email:
>> goldfarb at corefa.com
>> c.o.r.e. digital pictures                       
>> http://www.coredp.com
>> .......................................................................
>> "Unless you're an astronaut, secret agent, vampire hunter,
>> or all three, you're probably a sellout; screw you."
>> - Maddox 2003
>> _______________________________________________
>> 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
>   




More information about the Sidefx-houdini-list mailing list