[Sidefx-houdini-list] Creating local material paramters via scripting

Pablo Giménez Pizarro pablogipi at gmail.com
Fri Sep 28 13:44:05 EDT 2012



Enviado desde mi iPhone

El 27 Sep 2012, a las 11:34, Michael Scarpa <michael at scarpa.name> escribió:

> Hey Pablo,
> 
> I'm not entirely sure, but I believe what you want is the material() method on the hou.ObjNode class:
> 
> hou.node("/obj/geo1").material("override")
Sounds good, thanks!
> 
> should do the same as the "Create All Local Material Parameters" menu does, if I'm not mistaken.
> 
> Hope this helps,
> 
> Michael
> 
> 
> On 27 Sep 2012, at 10:58, Pablo Giménez wrote:
> 
>> Hello all again :)
>> I was wondering if somebody has managed to cfeate local material parameter
>> for an object using scripting.
>> I know it is possible using python, but rebuilding the same thing that is
>> done by the button besides the material selector in the object parameter
>> would be tedious.
>> Is there any implementation of the "Create All Local Material Parmeters"
>> wither in hscript or python?
>> Or I have to implement it from scratch?
>> The button paramter is called shop_materialopts, but it is not calling to
>> any callback so seems it is something harcoded in the geo object
>> implementation.
>> 
>> Thanks
>> 
>> -- 
>> Un saludo
>> Best Regards
>> Pablo Giménez
>> _______________________________________________
>> 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