- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi there, excuse my english.
i m absolutely unskilled with mel/python but i m facing the circumstences where it is necessary for me to build a script for the purpose of not repeating anoying things a billion of time....
im making measurement of the deph of field for z deph and blur purpose.
im trying to build a camera with the mesurement tool parented to its body and aim.
the locator 1 of the mesurement tool is parented to the camera and the locator 2 to the Aim of the camera.
I build the script by drag and dropping from the shelv exactly the way i would do it in the editor, and it works!
but now:
I would like to finish the script by making it usable in any circumstances by not naming nodes by their first name:" locator1 camera1"but by
I storing nodes in variables.
but here start endless errors and nonworkings attempts...
here is the script:
camera; // create camera cameraMakeNode 2 ""; // create aim distanceDimension -sp 0 0 0 -ep 1 1 1; //tool pointConstraint camera1 locator1; //snap locator to cam parent locator1 camera1; //parent it pointConstraint camera1_aim locator2;//snap locator to aim parent locator2 camera1_aim; //parent it
how should i do? i have tried many variation with:
like :
string $myCamera =`camera`; string $myAim=`cameraMakeNode 2""`;
it does create a camera but no aim...
Would you help me with that, or put me in the wright track for it?
thank you!
Solved! Go to Solution.