Jump to content

merging an object from a scene with a different unit scale system


Illya Gamza
 Share

Recommended Posts

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

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

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 by siddharthkolte
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...