Open mcnewmann opened 3 years ago
I am having this problem. I exported my circuit board design with each component in it's own file. I get names like:
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 20.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 21.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 22.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 23.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 24.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 25.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 26.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 27.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 28.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 29.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 3.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 30.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 31.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 32.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 33.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 34.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 35.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 4.usdz
export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 5.usdz
I think import_usdz.py#L19
> python
>>> "export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 35.usdz".split('.')
['export_2021-12-29_15h38m_R_Axial_DIN0207_L6', '3mm_D2', '5mm_P7', '62mm_Horizontal 35', 'usdz']
> python
>>> "export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 35.usdz".rsplit('.', 1)
['export_2021-12-29_15h38m_R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal 35', 'usdz']
This is fixed and can be closed
the importer crashes if a file name contains more than one dot char