Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 20-03-2006 , 11:07 AM
facelaunch's Avatar
Registered User
Join Date: Mar 2006
Posts: 1

How do you pass values from a .mll to mel script?

Hi


I have written script so that the mouse can click and drag in the x,y,z directions.

I now need to use this code for another device - phantom device - though the type of device is not extremely important. I have the .mll code which can locate the x,y,z position of the phantom device but how do you pass the c++ values into the mel scipt - so that it knows that it needs to work with x,y,z values of the phantom and not the mouse?



eg.



// call the .mll for getting the x,y,z postion of the phantom device



// assign the phantom[x] to the mouse variable for [x];

// assign the phantom[y] to the mouse variable for [y];

// assign the phantom[z] to the mouse variable for [z];


user added image

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads