View Full Version : trackView.setFilter

01 January 2009, 09:21 PM
Hey all,

I'm trying to get a script working to setup a group of trackView filters and for some reason all the filters under the Transform category just don't seem to respond to their respective call.

For instance:

trackView.setFilter <name> #transforms #positionY #positionX

This will result in "true" for each call, but only the Tranforms are turned on, the positions remain off. The same result when I try calling the positions, scales, or rotates all by themselves. It gives me true but nothing happens.

Am I possibly missing a step? All the other filters work like they should, except for the Position, Scale, and Rotates. (XYZW)

01 January 2009, 01:37 PM

somebody (in the maxscript dept over adsk) mixed nomenclatures...

#positionX|Y|Z, #rotationX|Y|Z and #scaleX|Y|Z correspond to the "Function Curve Display" group toggles (bottom-right) in the Filter dialog.

To get at the Transforms X, Y and Z toggles (top-left), use #curveX|Y|Z instead.

Slightly confusing :)

01 January 2009, 06:58 PM
Ah sweet! Thanks mate. =)

I also had to turn on #position, as well as #curveX|Y|Z, but yeah that was confusing the heck out of me. Of course in hindsight it makes perfect sense, but what else is new.

01 January 2009, 07:05 PM
On a similar topic, do you know if there is a way through maxscript to "open up" the Limited Controller: Bezier Float curves in the curve editor?

By default when you open the curve editor each channel is closed up, and you have to click the + sign to have it open up and display the actual editable curve. You only need to do it once per Max session, but even so when working with 30+ controllers I'd love to be able to script it so they all open up. Any thoughts? I'm not even sure where in the help file to look, or what it would be called.

01 January 2009, 08:49 PM
hmm.. There doesn't appear to be a command to expand/collapse just a single track.

I *might* be able to figure something out, but can you give more information on exactly which tracks you'd want to expand?

Right now I'm eyeing, say, a sphere with its Radius track...

(-) Radius
|----- Limited Controller
(-) Limits
|----- Upper Limit
|----- Lower Limit
|----- Upper Smoothing
'----- Lower Smoothing

Is the "Limits" one the one you'd want to expand?

Edit: Just imagine that the above is a pretty little ASCII hierarchical tree.. and not what vBulletin decided to make of it.

Edit2: Errr, maybe not. Max just crashed instead of what I was hoping it would do :\

01 January 2009, 12:02 AM
I'd be happy just expanding everything, if there is a command for that.

The hierarchy I'm looking at looks like this, (attempt to ascii it)

Initially it gives me this:

|---[+] X Position
|---[+] Y Position

When I expand I get this:

|---[+] X Position
|---[-] Y Position
|---Limited Controller: Bezier Float
|---[+] Limits

The curves I need are on the (Limited Controller: Bezier Float) channel, so the only thing I need expanded is the first [+], though it makes no different if the limits get expanded as well.

01 January 2009, 12:07 AM
I'd be happy just expanding everything, if there is a command for that.
there is.. but the problem is that it expands *everything* - from the sound track through global tracks to materials in the material editor, etc.

with the trackview open:

01 January 2009, 12:19 AM
Excellent thanks again. All the filters I don't want to see are turned off anyway so it's okay if they get expanded.

CGTalk Moderation
01 January 2009, 12:19 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.