Enterfield
@enterfield
New Member
Joined: Feb 15, 2024
Topics: 6 / Replies: 17
Reply
RE: Lambdas in Maxscript – First Attempt

Simplified version: Still don’t like that I need to access the variables by v1 v2 v3 . a way to give them names would be great. Thats why i thought a…

8 years ago
Forum
Reply
RE: Lambdas in Maxscript – First Attempt

Maybe a global dictionary whould be a solution where I store the variables that I need inside a lambda body. But I am not sure if that is a better sol…

8 years ago
Forum
Reply
RE: Lambdas in Maxscript – First Attempt

Hello Andres, thanks for ur answers. But still not what I am after. 3.) for each call of the generator u produce one return. In these cases passing …

8 years ago
Forum
Reply
RE: Lambdas in Maxscript – First Attempt

Well my last solution (Generate5RandomNumbers) shows that I can define a function inside the paramters of a function call, so maybe lambda expressions…

8 years ago
Forum
Reply
RE: Lambdas in Maxscript – First Attempt

Denis thanks for all those ideas! But they still have something in common. Function ‘a’ and function ‘b’ are quiet close coupled. You can even see th…

8 years ago
Forum
Reply
RE: Lambdas in Maxscript – First Attempt

Found this solution now to be quiet close to what I want to do. Even the syntax is similar. Only downside there is no closure so i can only excess gl…

8 years ago
Forum
Reply
RE: Lambdas in Maxscript – First Attempt

Yes this Job solution goes more in the right direction. I just don’t like the fact that i need to specify the action somewhere else and not directly w…

8 years ago
Forum
Reply
RE: Lambdas in Maxscript – First Attempt

No, just an action, not the agruments. My C# example from above: public void main () { var shoppingcarditems = new List<string>(); sho…

8 years ago
Forum
Reply
RE: Lambdas in Maxscript – First Attempt

Then I can just execute functions that take one array as argument. Also I don’t think that solution will be more readable than my last solution. I wa…

8 years ago
Forum
Reply
RE: Lambdas in Maxscript – First Attempt

to allow a function in maxscript to call another function for which it doesn’t know its parameters your average can just execute methods that takes …

8 years ago
Forum
Reply
RE: Lambdas in Maxscript – First Attempt

Ok, found a solution for the missing overloading of functions. I forgot that i can use the struct initializing to get the parameters. Also the code s…

8 years ago
Forum
Topic
Forum
Replies: 35
Views: 99
Topic
Forum
Replies: 1
Views: 10
Reply
RE: Get current selected Layer

Oh, your are right. It’s just working in Max 2015

11 years ago
Forum
Reply
RE: Get current selected Layer

Yes very strange indeed. That’s how i came upon this: If I rightclick on a layer in the layer manager and click “select child nodes”, following macr…

11 years ago
Forum
Page 1 / 2