mecanicus Posted January 27, 2018 Share Posted January 27, 2018 Hello, I use a babylon file from blender. For my animation I use the arborscence as it defined with blender below: parent -> child1 -> child2 |child3 |child4 For the second part of my animation I want to change the tree: parent parent2(ex child1) -> child2 |child3 |child4 I do not find how to do it. I need help. Thank you Quote Link to comment Share on other sites More sharing options...
MarianG Posted January 27, 2018 Share Posted January 27, 2018 You want to remove the first parent? I don't think I understand Maybe a playground will help. Anyway a better solution for "parent" stuff, is to use mesh1.setParent(mesh2) instead of mesh1.parent = mesh2. Quote Link to comment Share on other sites More sharing options...
mecanicus Posted January 27, 2018 Author Share Posted January 27, 2018 In the first parent case 1 has a child child1 and child1 has three children child2, child3, child4. I want to keep parent1 and separate child1. But child1 must keep his children. is it more explicit ? Quote Link to comment Share on other sites More sharing options...
brianzinn Posted January 27, 2018 Share Posted January 27, 2018 22 minutes ago, mecanicus said: I want to keep parent1 and separate child1. But child1 must keep his children. Does this work? child1.setParent(null) Quote Link to comment Share on other sites More sharing options...
mecanicus Posted January 27, 2018 Author Share Posted January 27, 2018 great, it works. Thank you. brianzinn 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.