OMG, I’m with you. I know what it is to take responsibility for someone else’s project. I’m sorry you have to experience this. Hope you’ll make it.
Yes… i did everything but this is over me :D. In pg it is so easy… but this is class based babylon
I have maybe progress
Can inport .babylon file now i want to export so i read you sended me i did this function:
But is concole is this error know anybody how to solve it?
I did it… its work OMG Thanks to all.
But idk why there was error i posted upper. Because i did nothing and second export worked
.
Good to hear you’re making progress ![]()
For the above, Hard to say just like that. If it works eratically (not always), it’s possible that you are calling on a function (the export) while the scene is not ready yet. I would probably want to rely on a ‘promise’ for the import and transformation steps before making the export ready.
Edit: If you have sometimes two or more meshes (like I think you eventually do), I would use 'promise all’ .then(() => { //on after load meshes, perform transformations… .then(() => { //on after transformation, make the export available. A 2 steps process with 2 promises (one for the meshes import, one for all transformation steps. When all commited, make the export ready.
Edit1: May be I did not make myself clear enough. I don’t want you to wander too much because I explained things badly. For the meshes import, I would use ‘promise all’. For the commit of all transformation steps and as a condition for making your export ready, you can use ‘scene.onReadyObservable’. This event will trigger only when the scene is ready and should be just fine to use as a condition for making your export ready. Hope this will help,
I’m not going to rewrite it when it works on 80%
Last step is move with imported meshes with gizmo manager, but i will let it be like it is
. I can move with meshes when i add it into scene.
80% also means 20% of unsatisfied people. You have to remember this. What I was suggesting is not a rewrite. It can be done in an hour and will not change anything to what you already have. But then, it’s up to you. I am simply here to try answer questions the best I can. If you’re happy with it, then we are too ![]()
