lo1
@lo1
New Member
Joined: Feb 14, 2024
Topics: 44 / Replies: 1920
Reply
RE: editText text instead of modifier name maxscript

Wouldn’t your user prefer to select the morpher name from a dropdownlist, rather than have to type it in?

9 years ago
Forum
Reply
9 years ago
Forum
Reply
RE: Generic methods from .Net – How to fiddle with them in MXS

You can use the following methods to create generic instances in maxscript. The usage is self-explanatory. fn getGenericType strType genericParams = …

9 years ago
Forum
Reply
RE: 3ds Max SDK – Atmospheric Effect

untested std::vector<MSTR> names; Interface* ip = GetCOREInterface(); for (int i = 0; i < ip->NumAtmospheric(); i++) { names.push_ba…

9 years ago
Forum
Reply
RE: Finding Average vector

Sorry, I had just woken up when I wrote that. If you only need the midpoint, then lerp is fine, just (a+b)/2 it.

9 years ago
Forum
Reply
RE: Finding Average vector

Lerp has certain inaccuracies, depends on what you need the averaged vector for. See this explanation for various techniques:

9 years ago
Forum
Reply
RE: Get AnimHandle from .NET object

Oh, I missed the scrolling in the first code block, took me like 5 readings to get the point. You can use the asDotnetObject flag when calling any do…

9 years ago
Forum
Reply
RE: Get AnimHandle from .NET object

What’s wrong with casting? return unchecked((IntPtr)(long)(ulong)animHandle);

9 years ago
Forum
Reply
RE: Parameter Array for Attribute Holder

You can only used typed arrays (tabs) in parameter blocks. In your class, the type of the parameter would be #stringTab

9 years ago
Forum
Reply
RE: Howcan I detect pc2 point cache file is empty?

The following is a method I use to query various information from PC2 files. It’s generally based on the PointCache code in the SDK examples. def_vis…

9 years ago
Forum
Reply
RE: align vector B to vector A

dot product can only return an angle in the 0-180 range. It treats both cases as the same angle. Instead, use atan2 to find the angle. fn GetVectors…

9 years ago
Forum
Reply
RE: NodeEventCallback Failure

No idea why structs fail, but the code is available in the SDK if you want to investigate: …\samples\maxscript\mxsagni\extclass.cpp

9 years ago
Forum
Reply
RE: NodeEventCallback Failure

It works when the function is not inside a struct.

9 years ago
Forum
Reply
RE: Renderer plugin called repeatedly while material editor is open?

I’m not speaking from experience, but it sounds like that shouldn’t happen. Perhaps find out why it is being called all the time? Are you properly set…

9 years ago
Forum
Reply
RE: Determine if a node has consistent topology

Yes, or more specifically, I need to know which objects have changing topology.

9 years ago
Forum
Page 4 / 131