XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : User interface

01-05-2011, 06:38 PM
I have a script that will read joint angles from a .csv file and rotate the appropriate nodes on the biped. Now I would like to create a user interface that allows me to input joint angles and observe the resulting posture. My specific project will deal with the hand, so I want to input X number of angles and see the hand shape. I will manually define the X nodes.

I should be able to modify the existing code, I just need to know how to set up the user interface. My current code is below.


(--start a local scope. You can add a MacroScript definition above to make it a button
folder = getSavePath caption:"Choose folder with joint angle files" initialDir:"C:\\Documents and Settings\\lab\Desktop\\Scott\\GRASP Room"
files = getFiles (folder + "\\*.csv")
for i = 1 to files.count do (
theFilename = files[i]
if theFilename != undefined do
( --if a valid filename picked,
local theFile = openFile theFilename --open the file
while not eof theFile do (
theObjName = readValue theFile
theObj = getNodeByName theObjName
theTime = readValue theFile
XRot = readValue theFile
YRot = readValue theFile
ZRot = readValue theFile
with animate on (
at time theTime
in coordsys local rotate theObj (eulerangles XRot -YRot ZRot)
close theFile --close the file when done
)--end if
)--end script

01-06-2011, 07:23 AM
go to maxscript help, search for topic: "Visual MAXScript".
use this tool to create all your UI.

CGTalk Moderation
01-06-2011, 07:23 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.