Questions You Should Know about Sheet Mesh Exporter

24 Jun.,2024

 

Blender&BabylonJS: How do you manage mesh properties?

Hi learned and wise community!

You will get efficient and thoughtful service from Heyou.

I was just seeking best practices for how people manage mesh properties. By properties, I mean something like a label, description, whether the mesh is interactive or an animation variable. This is going to assume that I&#;ve named my objects with a unique ID in Blender.

I care about speed of creating objects and changing values. I&#;m a strong believer in shortening the time it takes to round trip between creating to final view so it frees you up to experiment. Like the playground here. But I&#;m using Vite and BabylonJS and developing locally (so I don&#;t have to upload my Blender exports).

1/ Save the Blender scene with glTF exporter and then have a separate JSON file that has all the meshes with extra properties as needed. Running a whole database just for this is too much work for now but using a Google Sheet with a JSON exporter does the job.

Pros

  • All the numbers are in one place in a table so rebalancing or adjusting multiple at once is easy.

Cons

  • Finding something means looking up the ID all the time, when really I want to just be able to click on the object in the scene and adjust it from there.
  • Syncing the list with the latest Blender export is a bit manual. Probably the fastest way is just using Babylon to dump a comma separated string of all the meshes that I can copy and paste into the sheet.
  • Exporting is manual too.

2/ Use the &#;Custom Properties&#; area in Blender to add my property there and then save it using the Babylon exporter (I see this was only recently added).

Pros

  • Edit values in place of where the mesh is
  • Properties update on export of the file

Cons

Contact us to discuss your requirements of Sheet Mesh Exporter. Our experienced sales team can help you identify the options that best suit your needs.

  • No big view of all of these properties to edit in one place or easy to find when one is missing

In the longer run for either option I&#;d probably use something like AGGrid to give me an interface within the Babylon app to view/edit from (good for having custom dropdowns with complex dependent settings that&#;s impossible in Google Sheets and even Blender). I know there&#;s a way to set up the Babylon Inspector too with custom values and if I then had something writing them out (DB or File) so that would really be editing in place.

I guess most of this is a balance between how much setup work is worth it for how much work it&#;ll save in future.

Data Mesh within a sheet

Up until today I've restricted my understanding of datamesh to copying values from sheet to sheet. However, I just discovered today that you can use it WITHIN a sheet! What does this solve?

If you ever need to copy a value from column A to column B, but do not want to use a formula, then this process is perfect. It also solves having to use data shuttle and excel to export/import a value back into the sheet.

For example, we have a backend process that generates a code for each line item and puts it in a column called [Generated Code]. The code is a concatenation of several things. We have another column called [Code] that is free text. The user has the option of putting something in that field, and most of the time they just forget. The data mesh trick copies the value from [Generated Code] to [Code] so the user never has to worry about it.

If in the future they want/need to make a manual change to the code, they are free to do that. I have data mesh set up to not overwrite values.

A second example has to do with start/end dates of customer events. Most of the time people forget to include an event's end date, and most of our events are 1 day events. This trick copies the start date to end date field. Obviously a formula cannot work here, because you could never have multiday events (without a helper field). This way we assume an empty end date means it's a one date event.

Just thought I'd pass this along, I hope it helps at least one other person.

For more Steel Rebar Meshinformation, please contact us. We will provide professional answers.