User interface

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  01 January 2011
User interface

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 January 2011
go to maxscript help, search for topic: "Visual MAXScript".
use this tool to create all your UI.
  01 January 2011
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 03:37 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.