magicm
@magicm
New Member
Joined: Feb 14, 2024
Topics: 8 / Replies: 546
Reply
RE: Remove multilisbox selections

Google > define:snapple > Soft drinks ???

18 years ago
Forum
Reply
RE: Remove multilisbox selections

Haha nice one Richard. Should have thought of that Idea for the next mxs challenge? Write a script that does … with as little code as possible

18 years ago
Forum
Reply
RE: Remove multilisbox selections

Or even shorter list.items = for i = 1 to list.items.count where not list.selection[i] collect list.items[i] Martijn

18 years ago
Forum
Reply
RE: Associative arrays in max

Well, the annoying thing about using this class in mxs, is that it only accepts dotNetObjects as keys/values. I suppose you could work around this by …

18 years ago
Forum
Reply
RE: Associative arrays in max

Hi Dave, AFAIK, there’s no way to use .net for this, at least not with maxscript. There is System.Collections.Hashtable which allows you to store key…

18 years ago
Forum
Reply
RE: InstanceMgr – Modifier Instances

You could use refs.dependents to get an array of nodes that are dependent on the given modifier: for obj in (refs.dependents $.modifiers[1]) where is…

18 years ago
Forum
Reply
RE: InstanceMgr – Modifier Instances

Hi Jenne, You could narrow down your search by filtering out all other modifier classes: theMod = $.modifiers[1] sameMods = getClassInstances (class…

18 years ago
Forum
Reply
RE: Is it possible to access the "render region" region using maxscript?

Hi Dave, Regions are stored per viewport and can be accessed using the viewport interface: viewport.setRegionRect <viewport index> <box2&g…

18 years ago
Forum
Reply
RE: Trouble: AddNewKey () not returning a key

amv256: Adding a new key to this Position_XYZ controller works, but for some reason the function does NOT return a key reference as it should. P…

18 years ago
Forum
Reply
RE: instance controller

By variable you mean a scripted controller variable? In case you do, it’s as easy as this: — create a new float script controller c = float_script()…

18 years ago
Forum
Reply
RE: Continuous check of keyboard.shiftPressed

Agreed, but Skrimski’s question remains, how do you know when the key is pressed?

18 years ago
Forum
Reply
RE: Continuous check of keyboard.shiftPressed

I’m sure there’s other ways to go about this. Could you explain what you need this functionality for? Will it run in a dialog/floater? Martijn

18 years ago
Forum
Reply
RE: Continuous check of keyboard.shiftPressed

The only way I can think of is by using a .NET form with .KeyPreview set to true. Add an event handler for KeyDown and check the state of the shift ke…

18 years ago
Forum
Reply
RE: Sort camera's keys selection range on timeline

filanek: Could you explain me please this part of your code? with undo “Sort cams” on what does this exactly do? This line tells max to create …

18 years ago
Forum
Reply
RE: Sort camera's keys selection range on timeline

Here’s a script that (I think) does what you want. There’s no error checking whatsoever, it assumes the position controllers of both the camera and it…

18 years ago
Forum
Page 12 / 37