Relax TOOL UVW unwrap access

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to create a sort of quick pelt script with predefined settings. I'm using 3d max 2012 design.
I first found a post here that you could set these values in the unwrapuvw.ini by adding/editing the following:
[Relax]
RelaxType=0
RelaxIterations=100
RelaxAmount=1.000000
RelaxStretch=0.000000
RelaxBoundary=0
RelaxCorner=0
RelaxBySpringStretch=0.000000
RelaxBySpringIteration=10
But this somehow doesn't work for my max. (Maybe wrong version).
After some digging I finally found the maxscript coding
( unwrap = $.unwrap_uvw unwrap.mappingMode 5 unwrap.relax2dialog() unwrap.relaxByFaceAngle 100 0 1 false unwrap.setRelaxAmount 1 unwrap.relax2() )
However two issues:
1. relaxbyfaceangle doesn't seem to work, i cant get it to select the 'relax by face angle' setting.
2. The process naturally only works like a quick button click (relaxes 1 milisecond and then stops), I need it to relax for at least 4 to 5 seconds before it finishes.
Any suggestions on how to get that to work?