Notifications
Clear all

[Closed] Get the full path to a selected track/parameter

I have a button that when i press, that displays pick track dialog using trackview.pickTrackDlg. I want to get the full path of selected track in to a variable (ex : $Sphere001.modifiers[#Bend].Angle )so that i can control that parameter using my script lately. how can i do this? i can’t find good help in script reference.

8 Replies
 lo1
exprForMAXObject <MAXWrapper_object> [explicitNames: <boolean>] 

Returns a string containing a MAXScript expression that will ‘name’ the specified MAXWrapper object using property access and indexes as needed.

http://help.autodesk.com/view/3DSMAX/2015/ENU/?guid=__files_GUID_95453E22_A022_4543_B31C_A052CECD3598_htm

exprForMAXObject <MAXWrapper_object> [explicitNames: <boolean>] 

I did know that one. how useful!

useful but has pretty big limitation. look at this thread: http://forums.cgsociety.org/showthread.php?f=98&t=1053154&highlight=exprForMAXObject

where is the problem? the method above doesn’t show the unique path to where a track node is. that means we usually want to know a path to subAnim that uses this controller, but the method above doesn’t provide it.

There was another thread about the same limitation http://forums.cgsociety.org/showthread.php?t=633112

It’s a pretty hacky solution. It’s basically – evaluate the controller expression string to get the controller, then recursively search the sub anim tree of the node and attempts to match the controller.

But yea exprForMAXObject is super handy, especially for things like quickly writing stuff to files and loading it back in to the max scene.

1 Reply
(@denist)
Joined: 10 months ago

Posts: 0

if max itself doesn’t use it probably there is a reason. check this thread http://forums.cgsociety.org/showthread.php?f=98&t=1223842&highlight=exprForMAXObject

if max itself doesn’t use it probably there is a reason

I’d completely agree it’s probably not the ‘best’ approach for IO of property data… but it’s quick and dirty and come in handy a couple of times.

Great post about LoadSaveAnimation, by the way. I did not know you could use it like that… no thanks to amazingly descriptive and well written help page on it. Thanks for the heads up.

sorry guys, im a newbie, can anyone point me to an example? so that i can look at the code and understand.