Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Load List Controllers?
  RSS 2.0 ATOM  

Load List Controllers?
Rate this thread
 
35825
 
Permlink of this thread  
avatar
  • Vig
  • Posted: 21 October 2009 09:10 AM
  • Location: Bellevue Wa
  • Total Posts: 20
  • Joined: 24 March 2007 07:40 AM

When loading .bip files saved with objects and list controllers into the motion mixer through maxscript there is no option to load list controllers (or max objects) so they end up being ignored?

MxTrack Class Method:

appendClip <track:mxtrack > <fname:string> <ZeroFootHgt:boolean> <interval:timevalue>

The specified bip file will be loaded into the new clip, and the reservoir, using the ZeroFootHeight parameter.

For layer tracks, the start of the new clip will be appended interval time from the end of the last clip in the track.
The interval variable must be >= 0.

For transition tracks, the interval parameter is ignored. The start of the new clip will be at the inpoint of the last clip in the track, and it will be on the opposite row of the last clip. It will start later if it collides with another clip.

For both layer and transition tracks, if there are no clips in the track, the new clip will start at frame 0.

Returns false if the specified file could not be loaded. Otherwise, it returns true.

MxClip Class Method:

loadFile <clip:mxclip> <loadOption:name> <filename:string> <ZeroFootHeight:boolean>

This loads a .bip file into a clip. loadOption must be one of the following:
#singleClip (means load the file only into this clip),
#instances (means load the file into this clip as well as all instances of this clip),
#adaptations (means load the file into this clip and all instances and adaptations of this clip).
Returns true or false, indicating whether or not the file load was successful.

Both of these methods of loading clips are missing options to load objects and list controllers.
Has this been exposed to maxscript like zero foot height was and it wasn’t documented or was it not added to maxscript? It seems like those options have been around a while so they should have been added =/

Anyone have a way to load list controllers into motion mixer?



3dsmax 2011 & 2012

Replies: 0
avatar
  • Location: West Midlands, England, UK
  • Total Posts: 14445
  • Joined: 06 August 2007 11:06 PM
  • Permlink of this post

Please don’t create duplicate posts - either you want to discuss this issue, or you “wish” for something to be added to max.



Max 4.2 through 2013.
XP-64 (SP2)
NVidia 9800GTX-512 (Driver 266.58).
Core 2 Quad Q6600 2.4GHz, 8Gb Ram, DX9.0c.

Replies: 0
avatar
  • Vig
  • Posted: 21 October 2009 11:10 AM

Sorry for the clutter, I wish it was documented if it was missed. If it’s not exposed to maxscript then its a bug and it needs to be fixed. I’m pretty sure it was never exposed so its a bug, and the bug thread says you need to post in this forum looking for an answer first, not the wish list.

But I’m not certain if its a bug or just un-documented… So you get posts in both places so both sets of eyes whoever is responsible might see it… doubt it but you never know.

I also think its a bug because it loads in some kind of burned in data just it doesn’t allow you to edit the keys or adjust the curves. It also breaks any wire parameters and keeps you from wiring to those locked objects.

For example I have a attribute holder assigned to a biped piece that controls the scale XYZ *list controller. I can save this to .bip and load it normally and all the keys are there and I’m able to edit them normally. If I load it via maxscript because these two parameters are missing the curves are locked and the keys are missing curves are there though just untouchable.

Any help on the subject would be much appreciated.

*Edit: I incorrectly used the words sub animation instead of list controller.



3dsmax 2011 & 2012

Replies: 1
/img/forum/dark/default_avatar.png

I know next to nothing about biped/mocap - much less about scripting it, sorry.

And please - READ the last post in the “bugs thread” before posting there. This thread has NO confirming replies so the bugs thread post has been removed. That thread is for confirmed (as in confirmed by several users) bugs only.

If this is a bug, wait for it to be confirmed then add it to the bugs thread. If it’s a wishlist item, i.e. asking for something new, post in Wishlist, but keep it simple, like “please add the ability to import list controllers in the loadFile and/or appendClip functions”. That’s all that is needed there - link to this thread for discussion. Remember that duplicate (ie. identical) posts are not allowed.

Author: Steve_Curley

Replied: 29 October 2009 03:45 AM  
avatar
  • Vig
  • Posted: 29 October 2009 03:55 AM

Thanks for the info. I edited the wish list post to be more concise and to point here for discussion.

Would it help if I wrote up a quick tutorial that outlined the brokenness?



3dsmax 2011 & 2012

Replies: 1
/img/forum/dark/default_avatar.png

A bug is a feature which doesn’t work. A feature that doesn’t exist cannot, by definition, be a bug, because it doesn’t exist and therefore cannot fail.

Also, you keep introducing different things into the mix. Is this about List Controllers or Keys?
And if you DO fill out a bug report, they WILL want step-by-step instructions on how to re-create the bug. But is it a bug in the first place?

From what you said above, the “missing keys” may well be a bug, but you mentioned it, in passing, in a thread about list controllers. It really would be easier to keep things separate, and you’d likely get more responses too. Create a new thread just for the keys issue and see what responses you get.

And finally, please put your Max version in your sig - we have no idea which one you’re taking about. If it’s 2010, then you do know that CAT is available for download (for subscription customers) and it will probably become part of Max for everyone (eventually). I suspect Biped will go the way of Physique (replaced by Skin) and be replaced by CAT.

Author: Steve_Curley

Replied: 29 October 2009 04:33 AM  
avatar
  • Vig
  • Posted: 29 October 2009 06:05 AM

I totally understand this is a crazy issue and I’m sorry its so complex. Thanks for hanging in there.

It is entirely possible the functionality is there and just not written into maxscript help file. Which has happened before and been listed under bug fixes. So it is a documentation bug and needs to be flagged and changed.

But I have no way of knowing if its, I’m not autodesk. Either way, missed documentation or missed maxscript update, when they added the availability to load list controllers to the front end (the UI) they should have updated the back end (maxscript) also. Its something they’ve always done and must have missed this time around. I’m sure if they know about it, there will be a forehead slap and it will be included in the next update or release.

It’s something they missed and it breaks a part of max. So it’s a bug.

I just finished filling out a bug report.

Here are the steps to replicate the problem(s).
- Create a new, scene.
- Create a biped, assign a scale list controller to the thigh and animate the scale.
- Just for giggles also create a box and attach it to the biped. This will demonstrate “load max objects” does not work via maxscript.
- Save the scene.
- Save out a .bip file from the biped menu on the motion tab. Name it “scaletest.bip” and save it to the same place your scene is saved (so the maxscript below can find it).
- Delete the biped and create a new one.
- Load the .bip file into motion mixer via maxscript using the appendclip function.
Here is a sample function, paste it into a new maxscript and evaluate it (Ctrl-E):

(
 themixer
.showmixer()
 b 
$bip01
 c 
b.transform.controller
 themixer
.addMixerToDisplay b.transform.controller
 $bip01
.transform.controller.mixerMode true
 bodyMix 
$bip01.transform.controller.mixer
 
 
if getTrackgroup == false do
 
(
 insertTrackgroup bodymix 1
 )
 
 (
 bodyTrackGroup 
getTrackGroup bodyMix 1
 bodyTrack 
getTrack bodyTrackGroup 1
 extentTrack 
getTrack bodyTrackGroup 1
 
 fn LoadTestClip 
=
 
(
 appendClip extentTrack (maxFilePath 
"scaletest.bip") false 0
 local clip 
getclip extentTrack 1
 )

 LoadTestClip()
 )
)

Notice the scale did not load and the box is missing, this is because the appendclip function is missing the parameters to load list controllers (and max objects). Likewise if you had more objects like bones for wings, facial bones, secondary motion bones, these will not load either via max script.

You can however get some data to load into the list controller if you wire the scale list controller to an attribute holder assigned to the biped. However this creates a whole new nightmare that I talked about earlier(ghost curves/missing keys).

Since the attribute holder is not saved with the .bip file (I understand why it doesnt’ save modifiers, but it would be nice if it did, but that’s a feature request for another day). The result is a broken link in the wire parameters and no keys on the scale list controller, just curves that can’t be manipulated in any way. This is what I was talking about earlier about missing keys.

Ghost curves happen when you use a attribute holder to wire the list controller to.
Flat out missing is what happens when you use just a list controller.
Both are unworkable options and need to be fixed.



3dsmax 2011 & 2012

Replies: 0
avatar
  • Vig
  • Posted: 29 October 2009 07:51 AM

As for CAT replacing biped I doubt it. I did get the update since we’re on subscription and I’ve used CAT in the past but it lacks some of the features we need for this project.

They may have started off on pretty much equal footing but biped has out paced CAT for a while now. I don’t see biped dying off any time soon. Despite its poor reputation (mostly because of simple mistakes like this) its a great rig with a lot of features.

If I had to choose a successor to biped it would be PuppetShop.

But there are things biped does really well that PuppetShop does not and vice versa so just like CAT I don’t see anything replacing biped any time soon.



3dsmax 2011 & 2012

Replies: 0