Our 3D designer added 2 splines, 1 as mesh and 1 as a spline to a 3D model and exported using the babylon exporter to GLB, however the splines do not appear to be exporting.
Any ideas?
I want to make camera paths and look at paths via splines the designer creates so when the end client changes things (which they always do), I don’t have to go in and modify a spline by hand and reload every change I make and test, so I can leave it at the design stage, rather than the dev stage.
Well it’s either that or I manually create them via something like what threejs can do, threejs spline editor or even use that example from threejs to setup splines in the glb and bring the coordinates etc over to babylon.
1)Save this code as maxscript(*.ms) and open in max script tab scripting->open script
2)select points and evaluate script
3)copy and paste points array in something like JSON file and save
4)Load file with engine and use engine bezier curves
Sorry i dont have 2022 and scripts tested and working in 2021
but i see problem with quotes in my code there in format “%%\n” but you need use simple quotes программа для Web - скриншотов
Maybe some broke when i copypaste code/ So try again with this script or simply change quotes in your script