Chris MacDonald Posted April 8, 2015 Share Posted April 8, 2015 Is there a way to relax only the Z axis? Even if it's a plugin, it would help enormously. I found an old bit of maxscript on cgsociety but it didn't work, and even if it had worked, it'd have collapsed the stack which isn't ideal. Thanks in advance folks. Link to comment Share on other sites More sharing options...
RyderSK Posted April 8, 2015 Share Posted April 8, 2015 The only other relax plugin I know (http://www.mariussilaghi.com/products/toporelax ) doesn't have such controls either. So if you're in hurry, you could get by using manual edit poly relax painter. Not as quick&procedural, but if there's no better option readily available.. Link to comment Share on other sites More sharing options...
pixel Posted January 20, 2016 Share Posted January 20, 2016 I found this on another forum, might be useful You have to be in an editable poly, select the vertex you want to "Z-Relax", then launch the script (open listener, copy paste the code, select the code and drag & drop on a toolbar to create a button) ( /* Zlax Relaxes verts only along the Z axis 2008 [email]shannont@pbworld.com[/email] adjusted to only work on selected verts by Dave Buchhofer [email]dbuchhofer@gmail.com[/email] 01-2009 */ --local theQuery = queryBox "This will convert your object into an editable poly.\nALL modifiers will be lost!\nDo you still want to do this?" --if theQuery != false do ( --functions fn geomFilt o = (superClassOf o == GeometryClass) local theSourceObject = selection[1] if (ClassOf theSourceObject == Editable_Poly) and (subobjectLevel == 1) and (theSourceObject.selectedVerts.count != 0) then ( --Copy our object to a new one local theCopy = copy theSourceObject verts = theCopy.selectedVerts as bitarray --set the relax settings theCopy.relaxAmount = .25 theCopy.relaxIterations = 4 theCopy.relaxHoldOuterPoints = false theCopy.relaxHoldBoundaryPoints = false theCopy.EditablePoly.Relax selLevel:#Object --Change the Z values for all the original verts based on the z value of the relaxed object for v in verts do ( theOriginalVertPos = polyOp.getVert theSourceObject v theNewVertPos = polyOp.getVert theCopy v theZrealxedPos = [theOriginalVertPos.x,theOriginalVertPos.y,theNewVertPos.z] polyOp.setVert theSourceObject v theZrealxedPos ) delete theCopy select theSourceObject subobjectLevel = 1 )else messagebox "Z relax currently only works on Collapsed Editable Poly objects\nand requires a selection at the vertex level." ) ) 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