meshselect uvw auto refresh?
Hi
I have this simple script i wrote which works great for me (below)
If i change the model i need to work my way up the stack manually clicking on the "select" within mesh select modifier just to apply all the uvws.
Is there a script out there that would automatically work its way up the stack with one click? hopefully this is clear, Thanks for your help
(
tMod1 = Mesh_Select()
tMod1.name = "Mesh_Select_id1_Roof"
addModifier $ tMod1
$.modifiers[#Mesh_Select_id1_Roof].materialID = 1
modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Map].axis = 2
$.modifiers[#UVW_Map].length = 9
$.modifiers[#UVW_Map].width = 9
tMod2 = Mesh_Select()
tMod2.name = "Mesh_Select_id2_front"
addModifier $ tMod2
$.modifiers[#Mesh_Select_id2_front].materialID = 2
$.modifiers[#Mesh_Select_id2_front].enabled = false
modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Map].axis = 1
$.modifiers[#UVW_Map].enabled = false
tMod3 = Mesh_Select()
tMod3.name = "Mesh_Select_id3"
addModifier $ tMod3
$.modifiers[#Mesh_Select_id3].materialID = 3
$.modifiers[#Mesh_Select_id3].enabled = false
modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Map].axis = 1
$.modifiers[#UVW_Map].enabled = false
tMod4 = Mesh_Select()
tMod4.name = "Mesh_Select_id4"
addModifier $ tMod4
$.modifiers[#Mesh_Select_id4].materialID = 4
$.modifiers[#Mesh_Select_id4].enabled = false
modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Map].axis = 1
$.modifiers[#UVW_Map].enabled = false
tMod5 = Mesh_Select()
tMod5.name = "Mesh_Select_id5"
addModifier $ tMod5
$.modifiers[#Mesh_Select_id5].materialID = 5
$.modifiers[#Mesh_Select_id5].enabled = false
modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Map].axis = 1
$.modifiers[#UVW_Map].enabled = false
tMod6 = Mesh_Select()
tMod6.name = "Mesh_Select_id6"
addModifier $ tMod6
$.modifiers[#Mesh_Select_id6].materialID = 6
$.modifiers[#Mesh_Select_id6].enabled = false
modPanel.addModToSelection (Uvwmap ()) ui:on
$.modifiers[#UVW_Map].axis = 1
$.modifiers[#UVW_Map].enabled = false
)
Comments
`
ah, I see now what you need.
That should be even easier. I will take a look on it after work.
`
first i tried this oen to press select, but it still keeps old selection :(
but than I found that maybe is better to use Volume Select modifier instead of Mesh_Select in your cases
Volume Select automatically update selection by ID if you changed anything below in geometry.
so you should use something like this:
`
so... basically you should use VolumeSelect instead of MeshSelect because it will update all automatically :)
`
hey, try this one:
but 'm not sure why you want to turn off smodifiers with MatIDs higher than 1.
Hi Thanks for look into but
Hi Thanks for look into but that didn`t really work for my situation, i`ll try and explain my workflow:
I am build mainy low poly buildings to which i have taken mainly the front photos and maybe the side
so my script just applys the meshs select and uvw map which is fine,
and i apply a standard multi material with 6 slot of which the 1 id is alway the roof.
and the 2nd id is the front of the building.
I then go through the stack and fit the uvwmaps to fit the building elevations.
if i decide i need a bit more detail in the model i edit it at the bottom of the stack which alway messes up the uv`s.
So I need a script the simple goes back up through the stack selecting the id and applyign the uvw i have aready done. I don`t need the script to create the mesh select or uvw as its already been done.
Thanks again