Illya Gamza Posted April 22, 2015 Share Posted April 22, 2015 Hello everyone, I have a problem merging the files from a scenes with a different unit scale system. When I merge the objects (my system units are inches ) from the other scene( system units are mm)the scale of geometry is ok, but UVW mapping is not correct. I am pretty sure it is because of the uvw mapping which is in the Real world map scale. But modifier stack is collapsed and I can't fix it so quickly, at the same time there are so many objects ;( What are you doing folks in this situation? Link to comment Share on other sites More sharing options...
mjklm Posted April 22, 2015 Share Posted April 22, 2015 Try using the xform modifier. You may either apply it from the modifier list, or you can go to the "Utilities" and choose "Reset XFrom > Reset selected". At the end collapse whole stack to edit poly, that should help. Link to comment Share on other sites More sharing options...
siddharthkolte Posted April 23, 2015 Share Posted April 23, 2015 (edited) If all your materials have the UVW mapping problem then just select all of the objects that need the change and run a script like this. ( sel = getCurrentSelection() for s in sel do ( if not classof s.material == MultiMaterial then ( mat = s.material if classof mat.texmap_diffuse == BitmapTexture then ( if mat.texmap_diffuse.coords.realWorldScale == true then ( mat.texmap_diffuse.coords.U_Tiling = mat.texmap_diffuse.coords.U_Tiling / 25.4 -- As 1 inch is 25.4 mm mat.texmap_diffuse.coords.V_Tiling = mat.texmap_diffuse.coords.V_Tiling / 25.4 -- As 1 inch is 25.4 mm ) ) )else if classof s.material == MultiMaterial then ( submat = s.material for m=1 to submat.materialList.count do ( mat = submat.materialList[m] if classof mat.texmap_diffuse == BitmapTexture then ( if mat.texmap_diffuse.coords.realWorldScale == true then ( mat.texmap_diffuse.coords.U_Tiling = mat.texmap_diffuse.coords.U_Tiling / 25.4 -- As 1 inch is 25.4 mm mat.texmap_diffuse.coords.V_Tiling = mat.texmap_diffuse.coords.V_Tiling / 25.4 -- As 1 inch is 25.4 mm ) ) ) ) ) ) I am a bit unsure if you need to divide 25.4 to the existing Tiling or multiply (if it is multiply just change "/" to "*" Edited April 23, 2015 by siddharthkolte Link to comment Share on other sites More sharing options...
Josef Wienerroither Posted April 23, 2015 Share Posted April 23, 2015 Just released 3ds Max 2016 has a new checkbox in the merge dialog to automatically scale incoming objects to system unit scale Link to comment Share on other sites More sharing options...
Illya Gamza Posted April 23, 2015 Author Share Posted April 23, 2015 Siddharth Kolte, Thank you so much for the script. It worked perfectly for me. Regards Illya Link to comment Share on other sites More sharing options...
Illya Gamza Posted April 23, 2015 Author Share Posted April 23, 2015 Siddharth Kolte, Thank you so much for the script. It worked perfectly for me. Regards Illya Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now