This shows you the differences between two versions of the page.
impc4d [2018/10/17 09:51] |
impc4d [2021/04/27 09:19] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Importing to C4D====== | ||
+ | |||
+ | After [[ExpStaticMesh|exporting]] a mesh from the SpeedTree Modeler, you can use the included Cinema4D python script to load it into Cinema4D and recreate the materials as closely as possible. | ||
+ | |||
+ | You can run the script by choosing the Script / User Scripts / Run Script menu item. Or you can load it into the Script Manager and run from there. | ||
+ | |||
+ | > | ||
+ | |||
+ | |||
+ | |||
+ | =====Importing===== | ||
+ | |||
+ | When the script is run, it will prompt you to load a SpeedTree Material (.stmat) file. You don't need to worry about the format of the actual mesh exported from the SpeedTree Modeler, as that information is stored in the " | ||
+ | |||
+ | |||
+ | =====Extending the Script===== | ||
+ | |||
+ | If you wish to change how the materials are created, or add completely new material types, the script has been designed to be easily extensible in this manner. | ||
+ | |||
+ | All you need to do is change the MakeMaterial function in the python script, and the rest of the script will handle connecting it to the model appropriately. | ||