Page 1 of 1

[Tip] Modeling Macro Unwrap

Posted: 2009-04-10 20:30
by smee
Have found that doing a few little models that a macro can come in really handy.

it turns the poly to a mesh then creates 4 UVW channels with the 4 that are used. If you drag it to the tool bar it will create a button so with one press you can sort a model out :)

Code: Select all

convertTo $ TriMeshGeometry
modPanel.addModToSelection (Unwrap_UVW ()) ui :o n
modPanel.setCurrentObject $.baseObject
modPanel.addModToSelection (Unwrap_UVW ()) ui :o n
modPanel.setCurrentObject $.modifiers[#Unwrap_UVW]
$.modifiers[#unwrap_uvw].unwrap.setMapChannel 2
modPanel.addModToSelection (Unwrap_UVW ()) ui :o n
$.modifiers[#unwrap_uvw].unwrap.setMapChannel 3
modPanel.addModToSelection (Unwrap_UVW ()) ui :o n
$.modifiers[#unwrap_uvw].unwrap.setMapChannel 4
This might be old hat for some but may help some.

Just copy the quoted and drag to your tool bar, of course you have to have a object to do it on. :) There's no smilie faces in the quote.

Re: [Tip] Modeling Macro Unwrap

Posted: 2009-04-10 20:39
by Tomato-Rifle
There are smiley faces in the Quote... :?

Re: [Tip] Modeling Macro Unwrap

Posted: 2009-04-10 20:49
by smee
Yeah don't delete them couldnt see how to change that bit to plain text

Re: [Tip] Modeling Macro Unwrap

Posted: 2009-04-10 20:55
by DankE_SPB
use code tags

Code: Select all

[ /CODE]
[code]convertTo $ TriMeshGeometry
modPanel.addModToSelection (Unwrap_UVW ()) ui :o n
modPanel.setCurrentObject $.baseObject
modPanel.addModToSelection (Unwrap_UVW ()) ui :o n
modPanel.setCurrentObject $.modifiers[#Unwrap_UVW]
$.modifiers[#unwrap_uvw].unwrap.setMapChannel 2
modPanel.addModToSelection (Unwrap_UVW ()) ui :o n
$.modifiers[#unwrap_uvw].unwrap.setMapChannel 3
modPanel.addModToSelection (Unwrap_UVW ()) ui :o n
$.modifiers[#unwrap_uvw].unwrap.setMapChannel 4

Re: [Tip] Modeling Macro Unwrap

Posted: 2009-04-10 20:57
by Z-trooper
DankE_SPB wrote:use code tags
hehe, I changed it for him at the same time you wrote your post :D

Re: [Tip] Modeling Macro Unwrap

Posted: 2009-04-10 20:59
by smee
Thanks :)