hi, my version of grasshopper is 0.5.0099 On Mon, Apr 13, 2009 at 7:41 PM, visose <[email protected]> wrote:
> > I modified the above script to actually bake the material for > rendering purposes. You need to add an input called 'material' and > connect it to the shader. > > If blnBake Then > > 'Bake Object > Dim mObj As New MRhinoBrepObject > mObj = doc.AddBrepObject(obj) > > 'Set Material > Dim att As New MRhinoObjectAttributes(mObj.Attributes()) > att.setmaterialsource(1) > att.m_material_index = doc.m_material_table.AddMaterial > (material) > > 'Modify the attributes > Dim objref As New MRhinoObjRef(mObj.Attributes.m_uuid) > doc.ModifyObjectAttributes(objref, att) > > End If > > Damien, in relation to my problem about baking vertex colors. At least > i can render something using this method and lots sub-surfaces (one > per texel). It will be ridiculously inefficient though :P > > On Apr 13, 4:01 pm, damien_alomar <[email protected]> wrote: > > Some one asked this a little while ago, so I cooked up a custom > > definition for it. > > > > http://grasshopper3d.googlegroups.com/web/bakeWcolor.ghx?hl=en&gda=Bx... > > > > -Damien > > > > On Apr 12, 11:07 am, Pablo Morales <[email protected]> wrote: > > > > > hi, > > > Is posible to conserve the colour of grasshopper when i bake? I mean is > > > posible to render the colours of grasshopper in Rhino? > > > > > Thanks >
