ScriptSpot

Forum topic · General Scripting

accessing presence of .Bip files in scene Mixer and or Motion Flow Graph

By Dominique · 2011-10-28

Description

Hi,
We are actually in préproduction and are preparing our scripts for rendering in France, and for not having Max looking for missing .bip files in the Biped Mixer / Biped Motion Flow Graph, we're looking for a way to manage the problem before rendering.

As the animators in Belgium (as last year) will use the Mixer and/or Motion Flow from Biped, and as they will not (always) clean the mixer and MotionFlow Graph, we'll need a script for detecting if in the scene any .bips are still present in the Mixer and or the Motion Flow Graph.
We are searching the code for a couple of hours now in vain,

Any help for the code accessing this information with Maxscript would be gratefully welcome,

I tried and even bought flowers and an Icecream for my PC, but no way, not one line of code.

Dominique Gantois

Comments (2)

Dominique · 2011-11-01

thanks Anubis,

that's what we did and it seems to work,

Dominique

rare info about...

Anubis · 2011-10-29

Yeah, its very hard to find even a piece of code about.
Maybe this w'd helps a bit.

biped_ctrl = $bip01.controller -- Biped Body Controller

MFlow = biped_ctrl.motionFlow -- get Motion Flow instance
if MFlow.scripts.count > 0 do -- array of .bip files
	print MFlow.scripts

MMixer = biped_ctrl.mixer -- get Motion Mixer
if MMixer.numTransClips > 0 do
	for i = 1 to MMixer.numTransClips do
		print (getclip MMixer i)