ScriptSpot home

Forum topic · Scripts Wanted

two clic to make a line

By titane357 · 2012-04-13

Description

hello

I wonder if somebody could make a simple script to create a line by two clics and make the pivot of the line to have its x axis aligned to the line.
Thanks.
(no ui, just run script, clic, clic, and voilà)

Comments (12)
obaida

it's amazing (linepivot.mcr) working like a sharm .
Thank you "barigazy" , and the point now , how to change the local dir of an object pivot by two click , like in your script but without creating line (apply to selected object) .

Branko Živković

What do you expect to do this without matrix :)
Use my code and try to find the way how to build a simle tool.
I've already solved the hard part and I leave you a easy part.
You can look this example of very nice tool by OYH
http://www.scriptspot.com/3ds-max/scripts/cline-2-08
Have fun. I will track your progress.
Cheers!

Reply to Branko Živković
titane357

Thanks. Matrix is domething like Maths, is it ? :-)
Maths = Devil for me.
I'll try to do it before chrismas...

Reply to titane357
Branko Živković

Matrix is awesome, especially the movie.
But i already finish that part for you.
Now you only need to create the tool.

Reply to titane357
Branko Živković

Are you writte this? :)

It's better if you use UI (not Macroscript) because you have different axis options and center pivot position.
Why don't you create two verisons (ms and mcr) and post it like finished tool.

Reply to titane357
obaida

it's amazing working like a sharm .
but the point now , how to change the local dir of an object pivot by to click , like in your script but without creating line (apply to selected object) .

Willian Kim

did not understand what you're willing, when you create the line gives you the first click and then the second and the line is already created with the central pivot axis X. better explains what you need ...

Reply to Willian Kim
Branko Živković

I have already small script that sets the selection axis parallel to the line direction. But titane357 want tool to be able to create this line. I don't have time right now to finish "tool" part. If you want you can writte the rest of script.

Attachments
Reply to Willian Kim
titane357

Hello. I need a tool to make a line with the pivot direction going through the two clicked vertexes.
So, for geometric constuctions, it is easy in local mode to extend or shorten these so created lines.

titane357

nobody ?