magicm
@magicm
New Member
Joined: Feb 14, 2024
Topics: 8 / Replies: 546
Reply
RE: string as variable in stringstream

format ” execute (\”global objecttext_3=\”[b]stringtext[/b]\”\”) ” to:s stringtext is a string within a string within a string: format “< first s…

15 years ago
Forum
Reply
RE: Recursive Function Problem??

I think your second translate call should be translate b [[color=orange]-h,h,0][/color] Martijn

15 years ago
Forum
Reply
RE: how to caculate a line's reflected ray

When your shapes are actually curved, it’s not an easy task to find the intersection point, for straight lines it’s a lot simpler. I don’t have the ti…

15 years ago
Forum
Reply
RE: how to caculate a line's reflected ray

Not sure if I understand the question; Is this what you’re trying to do? You have a shape, an incoming vector that hits the shape at some arbitrary po…

15 years ago
Forum
Reply
RE: How to get max file name?

rarnett and Bobo both gave you the answer, lookup getFilenameFile in the manual. Martijn

15 years ago
Forum
Reply
RE: normals on nonuniform scaled object…

Thanks Bobo, this just totally made my day And I couldn’t agree more. Martijn

15 years ago
Forum
Reply
RE: vert>get tvert

This is typically what happens when there’s just one tvert per vertex (like in the .3ds format), check out the topic Understanding Texture Coordinates…

15 years ago
Forum
Reply
RE: how can I make an instance from an xref?

I think this should work with xref objects: replaceInstances <old_MAXWrapper> <new_MAXWrapper> transferCAs:<bool> replaceInstanc…

16 years ago
Forum
Reply
RE: qsort problem

I know you resolved the issue, but I just wanted to add that for numeric comparisons, you can simplify the qsort function to this: fn sortByAxisPos a…

16 years ago
Forum
Reply
RE: Adding Expression or Script Controller

Hi jonahhawk, You are probably getting an error because you have too many closing brackets in your expression: jonahhawk: fe.SetExpression “[…

16 years ago
Forum
Reply
RE: Array problem – What do I do wrong 🙁 ???

Some value types in maxscript require you to explicitly copy the original variable to create an independent copy, such as matrix3, point2, point3, arr…

16 years ago
Forum
Reply
RE: Optimized bounding sphere?

Finding the optimal bounding sphere of any given set of points is not as trivial as you might think. Using maxscript’s .min, .max properties (or nodeG…

16 years ago
Forum
Reply
RE: mousetracking and capturing keys

Afaik, you can’t abort a mouseTrack programmatically. What you could do is use a flag and check the state of that flag in the callback function, eg: …

16 years ago
Forum
Reply
RE: random selected keys

Key values have a .selected property (boolean), so you can use the following to iterate through selected keys only: for i in $.pos.controller.X_Posi…

16 years ago
Forum
Reply
RE: How to get an XYZ coordinate on a surface randomly

If you want to distribute a whole bunch of points over an object’s surface, your best option is probably Particle Flow. It’s distribution algorithm is…

16 years ago
Forum
Page 4 / 37