Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Maya/MAYA_APP_DIR/modules/DazToMaya/scripts/d2m.py
Original file line number Diff line number Diff line change
Expand Up @@ -2706,10 +2706,12 @@ def btn_save_with_text_callback():
just_file_name = os.path.basename(image_path)
out_file_name = out_path + "images/" + str(just_file_name)
if image_path != out_file_name:
color_space = file_node.getAttr('colorSpace')
from shutil import copyfile
copyfile(image_path, out_file_name)
file_node.setAttr('fileTextureName',
"images/" + str(just_file_name))
file_node.setAttr('colorSpace', color_space)

cmds.file(rename=save_file_result[0])
if ".ma" in save_file_result[0]:
Expand Down