erniesbot Posted July 5, 2010 Share Posted July 5, 2010 Hi Chaps, I am working on a project that requires the creation of hundreds of pylon towers, and am looking for a efficient method of linking wires between them. This may be asking a bit much but ideally i want a script that: Can draw a spline between 2 selected dummies, create a vertex in the centre of the spline and drop that vertex down in the Z axis by an amount based upon the distance beween to 2 points. So quite a lot really Can anyone point me in the direction of a similar script, or one i may be able to modify to suit requirments? Many thanks. Link to comment Share on other sites More sharing options...
-MerlyN- Posted July 5, 2010 Share Posted July 5, 2010 Cant help you there, dude. But you might wanna post this request at the script request section over at scriptspot. Link to comment Share on other sites More sharing options...
molson Posted July 5, 2010 Share Posted July 5, 2010 I can give a shot. Just let me know if you have found it already. Thanks, Mark Olson Link to comment Share on other sites More sharing options...
rgb Posted July 5, 2010 Share Posted July 5, 2010 (edited) have a go at this http://www.scriptspot.com/3ds-max/scripts/branchy not sure if it dose what you want but worth looking at. ill keep looking! found this one too http://www.scriptspot.com/3ds-max/scripts/cathenary its almost there Edited July 5, 2010 by rgb Link to comment Share on other sites More sharing options...
rgb Posted July 5, 2010 Share Posted July 5, 2010 Found it! http://www.neilblevins.com/soulburnscripts/soulburnscripts.htm this is a collection of scripts by Neil Blevins the one u need to use is called wirebundler i have just tested it and it works exactly how u want but it only worked on mesh objects and not dummy's so you need to attach a small sphere or box to your towers. it dose kind of make the wires look a bit heavy and pulled down but not perfectly. to achieve what you want you need to add another dummy object at a fixed distance from the main tower and have it at a lower Z (height) value, then copy your towers or array them so you will have this 3rd dummy object hanging in between every 2 towers and when you run the script the wire will have to go through this 3rd dummy and up again. that should do the trick i think. Link to comment Share on other sites More sharing options...
molson Posted July 5, 2010 Share Posted July 5, 2010 This script is simple and does not provide an interface. It creates a line in-between two objects with the mid point Z value being what ever you specify, (distance from mid point or a percentage of the distance). You can select two or many objects. be sure to select them in the correct order if you are selecting more than two. Instructions are in the readme.txt file. Link to comment Share on other sites More sharing options...
erniesbot Posted July 6, 2010 Author Share Posted July 6, 2010 Wow many thanks molson! That is exactly what we are after! Me and the guys in the office owe you a beer, that has just saved us from possibly the most tedious job in the history of computer graphics! Link to comment Share on other sites More sharing options...
erniesbot Posted July 7, 2010 Author Share Posted July 7, 2010 Molson, Thanks again for the awesome script. Just trying to figure out how to ajust the z value of the midpoint. Which script is it that I edit? I have tried to edit both but get an error message "--Unknown property: "newSplineBetweenPoints" in indefined".? Sorry but im an absolute scripting noob! Cheers Link to comment Share on other sites More sharing options...
molson Posted July 7, 2010 Share Posted July 7, 2010 oops forgot to add one thing -right click the button and select "edit macro script" add the following: global molsonToolsfn so that the macro script looks like this: macroScript molsonToolsSplineBetweenObjects category:"Molson" buttontext:"SMid" tooltip:"Spline between objects" ( global molsonToolsfn molsonToolsfn.newSplineBetweenPoints middleZPercentage:25 middleZDist:0 lineNamePrefix:"lineBetween" ) that should work Link to comment Share on other sites More sharing options...
molson Posted July 7, 2010 Share Posted July 7, 2010 Oh ya forgot to mention that you should restart MAX after making that change Link to comment Share on other sites More sharing options...
molson Posted July 7, 2010 Share Posted July 7, 2010 and to answer question you should be editing the the macro script, (.mcr) when editing the distance value Link to comment Share on other sites More sharing options...
molson Posted July 7, 2010 Share Posted July 7, 2010 Attached is the latest version. This one will work with any object type. and the "--Unknown property: "newSplineBetweenPoints" in indefined error has been fixed. if you have anymore errors, feel free to email me at: molson (at) ice-edge.com Thanks, Mark Link to comment Share on other sites More sharing options...
molson Posted July 7, 2010 Share Posted July 7, 2010 Attached is a newer version. This version includes a GUI so that you can change the properties much easier. - Unzip the zip file into the root of Max - Start Max - Go to Customize>Customize user interface… - Drag "Spline between objects UI" onto your toolbar - Use that new button, ("SMidUI") from now on I kept the old button, ("SMid") just in case you wanted to have a quick button and didn't want the UI. Link to comment Share on other sites More sharing options...
Tommy L Posted July 7, 2010 Share Posted July 7, 2010 Mark Olson did some complex custom scripting for me before at a very reasonable rate. Keep his details for future work! Link to comment Share on other sites More sharing options...
erniesbot Posted August 12, 2010 Author Share Posted August 12, 2010 Hi mark just read over this post again. Wow thanks for the updated GUI version, so much easier for myself and my team of scripting noobs! Thanks again, we will definatly keep you in mind for future projects! 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