allonym
@allonym
New Member
Joined: Feb 15, 2024
Topics: 0 / Replies: 14
Reply
RE: alternative to intersectRayEx

well, that drawing didn’t come out so well:( but here is a link to the other thread with an example image in it:

19 years ago
Forum
Reply
RE: alternative to intersectRayEx

Bobo, I think LFShade did something similar in CleanCut script, because it highlights edges and vertices as the mouse passes over. Although no raymes…

19 years ago
Forum
Reply
RE: data base reading

do something like: while not eof myfile do ( … ) <allonym>

19 years ago
Forum
Reply
RE: Mouse tool + ability to rotate view?

Try using mouseTrack instead. You can orbit the view without deactivating the tool, and it also does the intersectray stuff for you. <allonym>

19 years ago
Forum
Reply
RE: File methods

Maxscript defines the globals maxFileName and maxFilePath. That oughta do it <allonym>

19 years ago
Forum
Reply
RE: Replacing an object while retaining hiearchy?

objects have a .children property which returns an array of the object’s children. I don’t recall if you can set the .children property directly, but…

19 years ago
Forum
Reply
RE: max and SQL ?

At this time, I don’t think it’s possible to initiate a connection to a db directly through maxscript. You may be able to use DOSCommand to execute a…

19 years ago
Forum
Reply
RE: getting number of quads and tris

One might assume that since this question was asked in the maxscript forum, the author may have wanted a maxscript answer Triangles is easy: $.mesh….

19 years ago
Forum
Reply
RE: Returning ray intersection…

Rivendale, Your second (third) though is correct! I misinterpreted the image you attached, and now understand that the verts in question would result…

19 years ago
Forum
Reply
RE: Returning ray intersection…

Rivendale, You’re showing a case in which 3 verts share more than one polygon, which is probably quite common. However, the mesh is triangulated, and …

19 years ago
Forum
Reply
RE: Returning ray intersection…

Thanks, Martijn! The speed gain seems almost negligible, but I do find the code a lot cleaner. It’s pretty fast, though, clocking in at around .04 …

19 years ago
Forum
Reply
RE: Returning ray intersection…

The below script is ~4 times faster than Martijn’s, by casual testing using timestamp(). Here’s how it works: get a bitarray of polys for each vert …

19 years ago
Forum
Reply
RE: Query axis-specific rotation of object

Angles are expressed in Max as quaternions (by default). Quaternions are complex, but in simplified terms they consist of two components: an axis, an…

20 years ago
Forum
Reply
RE: Running Max Script in Stand-Alone

The answer, of course, is no. But what on earth would you want to do that for anyway? maxscript’s sole purpose is to automate various tasks within 3…

20 years ago
Forum