Notifications
Clear all

[Closed] Another Mini Script Challenge

sorry if this has been done before; the challenge is… you’ve built a fabulous max low poly model, you wonder what it will be like with “use NURMS Subdivision” checked, looks great but oh no from force of habit you “convert to poly” and undo is greyed out*. The mission should you choose to accept it is to write a script to deconstruct the subdivision and return the model to it’s original state.

*though the scenario is very implausible I did have a need to write this script for another reason. Anyway it’s was quite a simple an elegant solution I stumbled upon.

enjoy

19 Replies
 lo1

rule addition, the cheapest solution wins.

I just plan to add this method in my script “DeformedEdges”.
http://forums.cgsociety.org/showthread.php?f=98&t=1048132


  obj = convertToPoly (Box length:50 width:50 height:50 lengthsegs:5 widthsegs:5 heightsegs:5)
 backupObj = undefined
 fn getSnapshot obj &backupObj =
 (
 	backupObj = (p = copy obj).baseobject
 	delete p
 )
 getSnapshot obj &backupObj
 obj.surfSubDivide = on
 obj.iterations = 3
 convertToPoly obj
 --and return the model to it's original state
 obj.baseobject = backupObj

yes that would work in that case where you’ve called the getsnapshot function, what do you do if you haven’t ? say when you open a file and find the mesh subdivided by mistake.

Then I would use the same tool that that is suggested by lo:)

really ? wheres the fun in that ?

 lo1

http://www.mariussilaghi.com/subdivision.htm

This solution is $10 cheaper, do I win?

nope cos mine is free.

tip: when max subdivides a face, it always puts a single vert into the center of the face. find that vert and you can find the faces that make up the original face.

Page 1 / 2