johnalexander1571 Posted March 7, 2022 Share Posted March 7, 2022 Hi All, This script would save me a lot of time getting into Twinmotion. Currently, in order to animate something, you do so by material. So, if you have two objects with the same material, they are both going to move together in Twinmotion as if permanently grouped. At the same time, you don't want every material copied and made into an iteration, for some objects you do want them to move in unison. It is real pain to make copies of materials and reapply them with a different name. What the script does: right click on an object, choose "copy material and create unique name". It would then be applied to the object that was right clicked on. This way, it inherit all the mapping but can be moved individually in Twinmotion if needed. Jaakko 1 Quote Link to comment Share on other sites More sharing options...
johnalexander1571 Posted March 7, 2022 Author Share Posted March 7, 2022 right click and have it work on a group and do all the materials in the group would be sweet Jaakko 1 Quote Link to comment Share on other sites More sharing options...
johnalexander1571 Posted April 30, 2022 Author Share Posted April 30, 2022 (edited) Update, I found a way to make this problem go away. When importing the formZ datasmith file into Twinmotion, under options change the Collapse setting to "Keep Hierarchy" instead of "Collapse by Material". This makes the objects "objects" in TM, instead of each material being all the objects it's applied to. I have found it's important to set up good groups in formZ, this makes the outliner in TM more manageable. So, no need for the script, actually, I read some more of the instructions and figured out how it's intended to work. Edited April 30, 2022 by johnalexander1571 Jaakko 1 Quote Link to comment Share on other sites More sharing options...
¢hris £und Posted April 30, 2022 Share Posted April 30, 2022 John, Apologies, I have not had a chance to look into this. Good to know. And, good thing. Right now, there is very limited functionality for materials in the Python API. It may be possible, don't currently know. Though, one might be able to do it in the old FSL language. I haven't opened that book up in quite a while. ¢£ 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.