a unit poser bash buttons, pieces of unit move and rotate. dump/b-export current positions as a list of Turn&Move commands. only works on last spawned unit, similiar to boxxy viewtopic.php?f=14&t=24882
you can make it write a list of pieces, useable in a unit script ie like local body, head, leftarm, rightarm = piece ("body", "head", "leftarm", "rightarm") Also writes all the needed Move/Turn commands to get the unit into the current pose. Which is a long list but you can just c&p that, change POSENAME to ie "StandOnLeftLeg" and call it like StandOnLeftLeg (movespeed, turnspeed) Look at the examples in scripts\, its simple really.
This is not useable to automagically make walkscript, attack animations etc yet(?) at best it is a helper. if you wanted to make a walk animation, you have to remove all the commands refering to non-legs yourself so hands, turrets etc are not moved when walking. Also must add WaitForTurn/Move yourself.
button sender -> luaui\widgets unit message transmitter -> luarules\gadgets tpkeyframeus.lua -> set as script in unitdef
so you do not have to set up all that stuff, i compiled a demo mod with some units. thanks to the original modelers! smoth, KDR_11k, Wartender, Forboding Angel , maackey
/give pose [press tab] for list of all poseable units
/give ani [press tab] for list of some animations i made. Originally planned to make at least one ani for every unit but got lazy and whatever gay reason like no time. So only the gundam zaku, lolimod schoolgirl and evo crabthing have an ani.
How to use: /cheat /give pose[whateverunit] mash those buttons: w/s next/prev piece a switch edit mode turn <-> move 4/6 x axis 8/2 z axis 7/9 y axis 5 change stepsize, ie 1┬░, 10┬░ 45┬░ for rotation d write current position to infolog also writes a piece list
currently selected piece flashes (game must not be paused) to get a screenshot of the posed model without missing pieces, you have to pause in the correct moment when the piece is visible If no piece is flashing, it is probally an empty piece like an emitpoint for muzzleflashes etc.
If you type in console, it will likely spam some errors if you use some letters, but you can just ignore those.
Download is a zipped as .7z with an .sdd inside so you can test it on your own models easier. http://www.file-upload.net/download-312 ... dd.7z.html This is a working mod but of course no playable game. Also lol leftover unneeded files like weapondefs but yeah, its just a demo.
I plan to use this to animate a unit i have yet to make so maybe advances will follow or maybe not. Planned*: -autoadjust move/turn speed so all pieces finish moving at same time -smarter exporting of piece position instead of long ass-list -option not to move all pieces (like a walk animation should only move legs, not arms) -better organization of gadget/widget/unit script -piece reset to nullpos, skip empty pieces with no child pieces ... blablabla.
*in a thousand years maybe
Last edited by knorke on 26 Apr 2013, 09:09, edited 1 time in total.
Just a gadget and widget, using some code from knorke's unitposer. If your mod has chili, just drop them in. I'll post them later today, after I set this up to work in a modoption.
Only caveat is right now it doesn't stop the units from doing their own animations (if you accidentally tell them to move they will ruin their pose). I think it could be solved with a unitdefspost block to detect when modoption is on and set the units to use an empty LUS.
Can you export or save the pose information on each frame?
Also writes all the needed Move/Turn commands to get the unit into the current pose. Which is a long list but you can just c&p that, change POSENAME to ie "StandOnLeftLeg" and call it like StandOnLeftLeg (movespeed, turnspeed)
Last edited by CarRepairer on 06 Mar 2011, 19:39, edited 1 time in total.
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum