Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Volume Mesh material
#1
How at runtime (via API) do you set the material on a BuildVolumeMesh module?

There is a MaterialId but is says it is Obsolete. Not sure what the 'id' is either?

I have a Material that I've loaded and a BuildVolumeMesh that I've accessed.


Attached Files Thumbnail(s)
   
Reply
#2
Hi
Please use the BuildVolumeMesh.AddMaterial and BuildVolumeMesh.SetMaterial methods to add and modify materials to the Build Volume Mesh module. Each material is associated with an instance of CGMaterialSettingsEx, which contains the settings displayed on your screenshot. Please ignore the MaterialId field, as it is obsolete, useless, and will be removed in version 9.0
I hope this helped
Have a nice day
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#3
Thanks... I was looking at the API for the wrong CG module.

I had looked at a lot of past Forum post about materials. Several other people mentioned wanting to change materials based upon Metadata on CPs.
Please add this to version 9.0!

;-)
Reply
#4
(06-14-2022, 09:28 PM)tairoark Wrote: Thanks... I was looking at the API for the wrong CG module.

I had looked at a lot of past Forum post about materials. Several other people mentioned wanting to change materials based upon Metadata on CPs.
Please add this to version 9.0!

;-)

Will try to
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mesh Generation between two splines vatan 4 189 02-14-2025, 07:11 AM
Last Post: vatan
  Create Mesh Node, Make Static Options rickgplus 1 121 01-23-2025, 10:12 AM
Last Post: _Aka_
Photo Volume Spots problem with spacing Bond007 3 131 01-20-2025, 12:27 PM
Last Post: _Aka_
  Extrude mesh along spline. New and confused user GhostStalker 3 121 01-02-2025, 09:58 AM
Last Post: _Aka_

Forum Jump: