lo1
@lo1
New Member
Joined: Feb 14, 2024
Topics: 44 / Replies: 1920
Reply
RE: Local variables vs straight-up variables

You seem to have a misconception regarding locality. When declared inside a subroutine, and not explicitly marked global, all variables will be impli…

11 years ago
Forum
Reply
RE: Change render output file without changing output parameters

Yes, but then again without a reference of what the output parameters were at the time the scene was saved by the user, I have no way of recovering th…

11 years ago
Forum
Reply
RE: Change render output file without changing output parameters

I ended up using an SDK method. class OutputRetargetCallback : public IEnumAuxAssetsCallback { public: MSTR fromFile; MSTR toFile; OutputRetarge…

11 years ago
Forum
Reply
RE: [C#] passing enum values from mxs to C#

Try to define the enum outside of the class.

11 years ago
Forum
Reply
RE: List of objects merged

I feel like we’ve gone over this in the past, and the easiest and fastest method was: before merge: local oldObjCount = objects.count after merge: …

11 years ago
Forum
Reply
RE: Filtering Points

sure, glad to help.

11 years ago
Forum
Reply
RE: Filtering Points

this is a more efficient redundancy check: fn IsRedundant A B C thresh:0.001 = ( local v1 = A – B local v2 = C – B local d = dot (normalize v1) (n…

11 years ago
Forum
Reply
RE: Filtering Points

fn filterRedundantPoints pArr = ( local filtered = copy pArr #nomap local p = 1 while (p < filtered.count – 2) do ( local a = filtered[p] l…

11 years ago
Forum
Reply
RE: Filtering Points

yeah fair point, do it like that.

11 years ago
Forum
Reply
RE: Filtering Points

Well, the first and last points are obviously not redundant. You can add the first point to an empty array, loop N-2 timers starting with {1,2,3} up …

11 years ago
Forum
Reply
RE: Filtering Points

assuming points A, B, C where B is between A and C fn IsRedundant A B C thresh:0.001 = ( local v1 = B – A local v2 = C – A local d = dot (norm…

11 years ago
Forum
Reply
RE: 1399508779607-1399508769673=0?how to fix it?

iaoai: 1399508779607L – 1399508769673L “L” is great,it hacks the limitation of number vaild range,but I look through maxscript reference can’t find…

11 years ago
Forum
Reply
RE: [c#] RegisterViewportDisplayCallback problem

This sounds like an internal maxscript issue then. To get a stack trace you need to catch the exception on the c# side. Since there is no exception on…

11 years ago
Forum
Reply
RE: [c#] RegisterViewportDisplayCallback problem

Is it just the instantiation from maxscript that’s throwing the exception? You can check by adding a static method in the c# class that instantiates a…

11 years ago
Forum
Page 23 / 131