Baking curves with Colour Gradient

Hello Everyone!

I wanted to ask if you could help me with a simple operation, as i don’t know how to use the new " Elefront attributes" component to connect it to the bake component.
I’m new to the Plug in but the new version of it doesn’t have any tutorials online on how to use it…

I’m just trying to give Contour curves some gradient colour values.
I just can’t seem to convert the colour of the gradient component to an “Attribute”.

Error Message:

  1. Solution exception:Unable to cast object of type ‘Grasshopper.Kernel.Types.GH_Colour’ to type ‘EleFront.Types.EleFrontData’.

I must be missing something really obvious here :melting_face:

Attribute go into Attributes, you’ve got the color value input into attributes

OK thanks for the fast reply! at least the error warning is gone, but the curves seem to be baked without colour and with it’s boundary curves?

Does the Plugin give the Curves a Material? so i can set display colour: by Material ?

here is the GH file if that helps: (with fewer curves)

Elevation contours.gh (4.6 MB)

I don’t have those loaded at the moment.

Here is a quick bake solution using Rhino 8

2 Likes

Okay that seems to work on your side, but sadly not for me.
I got two error messages:
on model object component:
“The type initializer for ‘Grasshopper.Rhinoceros.Display.ModelDisplayMode’ threw an exception.”

On the content cache component:
“Object reference not set to an instance of an object rhino”.

Any idea why that happens?

Please run SystemInfo in the Rhino command line and post the result

1 Like

Rhino 8 SR18 2025-4-10 (Rhino 8, 8.18.25100.11001, Git hash:master @ 5d157e876c23ece334d9c8666b8513ffc6d4a98d)
License type: Educational Lab License, build 2025-04-10
License details: Cloud Zoo

Windows 11 (10.0.26100 SR0.0) or greater (Physical RAM: 16GB)
.NET 7.0.0

Computer platform: LAPTOP - Plugged in [100% battery remaining]

Non-hybrid graphics configuration.
Primary display and OpenGL: NVIDIA Quadro P2000 (NVidia) Memory: 4GB, Driver date: 12-7-2025 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 582.08

Integrated accelerated graphics device with 4 adapter port(s)

  • Windows Main Display is laptop’s integrated screen or built-in port
    Primary OpenGL: NVIDIA Quadro P2000 (NVidia) Memory: 4GB, Driver date: 12-7-2025 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 582.08

Integrated accelerated graphics device with 4 adapter port(s)

  • Windows Main Display is laptop’s integrated screen or built-in port

Secondary graphics devices.
Intel(R) UHD Graphics 630 (Intel) Memory: 1GB, Driver date: 3-6-2025 (M-D-Y).

Integrated graphics device with 3 adapter port(s)

  • Secondary monitor is laptop’s integrated screen or built-in port

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
GPU Tessellation is: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 12-7-2025
Driver Version: 32.0.15.8208
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 4 GB

Rhino plugins that do not ship with Rhino
C:\Users\T52\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\Karamba3D\3.1.50925\net7.0-windows\Karamba3D_LicensePlugin_Rhino8.rhp “Karamba3DLicense”
C:\ProgramData\McNeel\Rhinoceros\packages\8.0\LadybugTools\1.39.14\net7.0-windows\Ladybug.RH.Loader.rhp “Ladybug.RH.Loader” 1.39.14.0
C:\ProgramData\McNeel\Rhinoceros\packages\8.0\Pollination\1.65.31\net7.0-windows\Pollination.RH.Loader.rhp “Pollination.RH.Loader” 1.65.31.0

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.18.25100.11001
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.18.25100.11001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.18.25100.11001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.18.25100.11001
C:\Program Files\Rhino 8\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 8.18.25100.11001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.18.25100.11001
C:\Program Files\Rhino 8\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 8.18.25100.11001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.18.25100.11001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”

Can you update to the latest?

https://www.rhino3d.com/download/rhino/latest/

Done, but sadly that didn’t help

For the Model Object
”The type initializer for ‘Grasshopper.Rhinoceros.Display.ModelDisplayMode’ threw an exception.”

i ran it again with less curves and the model object component shows “Recursive data stream found, this component depends on itself” which is just not the case, I’m lost

If you open Rhino in Safe Mode (via Windows Start) and then open Grasshopper do you get the error?

yep.

Ok, lets try a Repair Install. (add or remove programs>Modify>Repair

Can you run another SystemInfo after? Thanks

1 Like

Rhino 8 SR25 2025-11-24 (Rhino 8, 8.25.25328.11001, Git hash:master @ 14cb4406ecadfa9b5d0230ac10bd86175bd37aff)
License type: Educational Lab License, build 2025-11-24
License details: Cloud Zoo

Windows 11 (10.0.26200 SR0.0) or greater (Physical RAM: 16GB)
.NET 8.0.14

Computer platform: LAPTOP - Plugged in [100% battery remaining]

Non-hybrid graphics configuration.
Primary display and OpenGL: NVIDIA Quadro P2000 (NVidia) Memory: 4GB, Driver date: 12-7-2025 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 582.08

Integrated accelerated graphics device with 4 adapter port(s)

  • Windows Main Display is laptop’s integrated screen or built-in port
    Primary OpenGL: NVIDIA Quadro P2000 (NVidia) Memory: 4GB, Driver date: 12-7-2025 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 582.08

Integrated accelerated graphics device with 4 adapter port(s)

  • Windows Main Display is laptop’s integrated screen or built-in port

Secondary graphics devices.
Intel(R) UHD Graphics 630 (Intel) Memory: 1GB, Driver date: 3-6-2025 (M-D-Y).

Integrated graphics device with 3 adapter port(s)

  • Secondary monitor is laptop’s integrated screen or built-in port

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
GPU Tessellation is: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 12-7-2025
Driver Version: 32.0.15.8208
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 4 GB

Rhino plugins that do not ship with Rhino
C:\Users\T52\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\Karamba3D\3.1.50925\net8.0-windows\Karamba3D_LicensePlugin_Rhino8.rhp “Karamba3DLicense”
C:\ProgramData\McNeel\Rhinoceros\packages\8.0\LadybugTools\1.39.14\net8.0-windows\Ladybug.RH.Loader.rhp “Ladybug.RH.Loader” 1.39.14.0
C:\ProgramData\McNeel\Rhinoceros\packages\8.0\Pollination\1.65.31\net8.0-windows\Pollination.RH.Loader.rhp “Pollination.RH.Loader” 1.65.31.0

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.25.25328.11001
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.25.25328.11001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.25.25328.11001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.25.25328.11001
C:\Program Files\Rhino 8\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 8.25.25328.11001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.25.25328.11001
C:\Program Files\Rhino 8\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 8.25.25328.11001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.25.25328.11001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”

OK just tried it on another PC, it worked, so it’s my Laptops problem.
I will get a new one anyway soon, some problems are meant to be left unsolved i guess
Thank you very much for all the help though! :slight_smile:

1 Like