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
  Duplicate Volume references become null joebain 5 33 11-18-2024, 10:46 AM
Last Post: joebain
  Is it possible to make the face at the end of mesh? Chanon 3 6 11-14-2024, 04:38 PM
Last Post: _Aka_
  Mesh deform - baby guide jmh1804 7 11 08-22-2024, 07:18 AM
Last Post: _Aka_
  Nested Spline Volume Spot Instantiation merobbins5 3 7 07-26-2024, 09:58 AM
Last Post: _Aka_

Forum Jump: