Google > define:snapple > Soft drinks ???
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
Or even shorter list.items = for i = 1 to list.items.count where not list.selection[i] collect list.items[i] Martijn
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 …
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…
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…
Hi Jenne, You could narrow down your search by filtering out all other modifier classes: theMod = $.modifiers[1] sameMods = getClassInstances (class…
Hi Dave, Regions are stored per viewport and can be accessed using the viewport interface: viewport.setRegionRect <viewport index> <box2&g…
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…
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()…
Agreed, but Skrimski’s question remains, how do you know when the key is pressed?
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
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…
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 …
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…