Import error with a python script
Hello,
How can I import both trousers and jacket with a Python script on CLO 3D? When I try to import a jacket and then trousers, it deletes the first import.
Thank you.
My script is the following :
import import_api
import utility_api
import fabric_api
cloAssetFolderPath = "Path_To_Avatars"
cloGarmentFolderPath = "Path_To_Cloths"
#Import avatar (.avt)
avtfilePath = cloAssetFolderPath + "/MV2_Leo.avt"
import_api.ImportFile(avtfilePath)
#Import cloth (top) (.zpac)
zpacfilePath = cloGarmentFolderPath + "/MV2_Swing Jacket.zpac"
import_api.ImportFile(zpacfilePath)
#Import cloth (bottom) (.zpac)
zpacfilePathBottom = cloGarmentFolderPath + "/FV2_Jogger Pants.zpac"
import_api.ImportFile(zpacfilePathBottom)
0
-
Hi. You can find all articles about API/Python HERE
Please note we cannot assist Individual Users further with API
0
Comments