Asked — Edited
Resolved Resolved by DJ Sures!

3Ds Max

Hey there, I just got my ez-robot developers kit today and would to like starting on my project which involves building a robot in a 3d application, printing it and transferring the robots movement out for the 3d application directly!

So my question would be if there is anyone out here in the forum who ever did this, or someone having used max script and could help me to send rotation values in the right form out of 3ds max to the ARC s http server!

It would be supercool if there is someone knowing how to do this, I am kind of lost when it comes to scripting!

XXXSwann


ARC Pro

Upgrade to ARC Pro

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

#17  

unregisterRedrawViewsCallback servo_r

/* Http socket open*/ rollout httpSock "httpSock" width:0 height:0 ( activeXControl port "Microsoft.XMLHTTP" setupEvents:false releaseOnClose:false ); createDialog httpSock pos:[-100,-100]; destroyDialog httpSock;

/* Get the rotation from the objects and send them*/ fn servo_r = ( /first servo/ a = "http://192.168.178.94/Exec?password=admin&script=Servo(D0, " b = $D0.rotation.z_rotation as integer c = ")" d = a+b as string +c

/* HTTP socket connect */ httpSock.port.open "GET" d false; httpSock.port.send();

/second servo/ e = "http://192.168.178.94/Exec?password=admin&script=Servo(D1, " f = $ExposeTransform001.localEulerZ as integer g = ")" h = e + f as string + g

/* HTTP socket connect */ httpSock.port.open "GET" h false; httpSock.port.send();

print (b)
print (f)

)

registerRedrawViewsCallback servo_r

#18  

The $ExposeTransform001.localEulerZ is used to get local rotation values from the joints of the IK chain.... I am really bad at coding, so if anyone knows how to clean this up at bit, I would appreciate any help! If anyone is interested in the 3dsmax scene or would also like to do something similar, just let me know!

Oh and the smiley faces are brackets!:D

#19  

Ok....I try once more to flag this as resolved!:)