Notifications
Clear all

[Closed] biped.copyPosture not working well?

Hello!

I’m trying to use biped.copyPosture to copy a track.

biped.copyPosture <biped_ctrl> (#posture | #pose | #track) <bool_horiz> <bool_vert> <bool_turn> 

As you can see you can choose between different flags. The “#track” flag is exactly what I’m after.
But it does not seem to work unless I have the “track” button activated in the “Copy/Paste” rollout of the Biped. If I have the “Posture” button activated it won’t work. I don’t get any error by the way, it just won’t copy and paste them properly.

Am I missing something? Is there a way to force the “track” button? Or am I going to have to hack my way around with UIAccessor?

Cheers!

9 Replies
1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

many years ago they decided not fix the bug but add new functions:

[left]biped.copyBipPosture <biped_ctrl> <ICC_MXCopyCollection> <nodes_array> (#snapView |#snapAuto |#snapNone)
[/left]
[left]Copies the biped posture.Available in 3ds Max 8 and higher.
[/left]
[left]
[/left]
[left]biped.pasteBipPosture <biped_ctrl> <ICP_MXBipedCopy> <bool_opposite> (#pstdefault |#pstcopied |#pstinterp) <bool_hor> <bool_ver> <bool_trn> <bool_byvel>
[/left]
[left]Pastes the biped posture.Available in 3ds Max 8 and higher.
[/left]
[left]
[/left]
[left]biped.copyBipPose<biped_ctrl> <ICC_MXCopyCollection> (#snapView |#snapAuto |#snapNone)
[/left]
[left]Copies the biped pose.Available in 3ds Max 8 and higher.
[/left]
[left]
[/left]
[left]biped.pasteBipPose <biped_ctrl> <ICP_MXBipedCopy> <bool_opposite> (#pstdefault |#pstcopied |#pstinterp) <bool_hor> <bool_ver> <bool_trn> <bool_byvel>
[/left]
[left]Pastes the biped pose.Available in 3ds Max 8 and higher.
[/left]
[left]
[/left]
[left]biped.copyBipTrack<biped_ctrl> <ICC_MXCopyCollection> <nodes_array> (#snapView |#snapAuto |#snapNone)
[/left]
[left]Copies the biped track.Available in 3ds Max 8 and higher.
[/left]
[left]
[/left]
[left]biped.pasteBipTrack <biped_ctrl> <ICP_MXBipedCopy> <bool_opposite> <bool_hor> <bool_ver> <bool_trn>
[/left]
[left]Pastes the biped track. Available in 3ds Max 8 and higher.
[/left]

So this is the workaround to the issue. I’m just switching to “Parameters” in the motion tab and clicking the “Track” button. But I still would like to know if I’m doing anything wrong :argh:

	setCommandPanelTaskMode #motion
	local theParametersButton = for n in (windows.getChildrenHWND #max) where n[4] == "CustButton" AND n[5] == "Parameters" do exit with n[1]
	windows.sendMessage theParametersButton (WM_LBUTTONDOWN = 0x0201) 0 0
	windows.sendMessage theParametersButton (WM_LBUTTONUP   = 0x0202) 0 0
	local theTrackButton = for n in (windows.getChildrenHWND #max) where n[5] == "Track" do exit with n[1]
	windows.sendMessage theTrackButton (WM_LBUTTONDOWN = 0x0201) 0 0
	windows.sendMessage theTrackButton (WM_LBUTTONUP   = 0x0202) 0 0

Thanks Denis!
I totally missed those functions. The old function is the first that popped in the search result, it would be nice if they could atleast warn us in the documentation :argh:
Oh well…

Thanks again!

[left]biped.copyPosture <biped_ctrl> (#posture |#pose |#track) <bool_horiz> <bool_vert> <bool_turn>
[/left]
[left][size=2]Warning![/size] [size=2]DON[size=2]’T WASTE YOU TIME PLAYING WITH IT! [size=2]IT DOESN’T WORK ANYWAY![/size][/size]
[/size]
[/left]

Haha spot on! Atleast next time somebody will find this thread when googling for the solution!

From what I remember with my ill-fated foray into biped scripting, it doesn’t store the hip position correctly, so is pretty much useless.

HI,I ‘m the guy find here by google,but where is the solution!
I don’t know how to use <ICC_MXCopyCollection> … :banghead:

HI ,norman 3d ,I’m coming for the solution from googling
i have no idea about the <ICC_MXCopyCollection> ,can u give me some example

Here’s an example, but seriously – DON’T BOTHER. As the saying goes, biped script access is like turning up to a sh*t fight armed with a fart.