Here's the Maya script I use to do this more quickly: Create a measure tool, move one locator to the focal point, and parent the other locator to the camera Then paste this into the script editor or the Command Line in the lower left of the screen: connectAttr -f distanceDimension1.distance cameraShape1.focusDistance; Way faster, and you can even save it into a Shelf button
@@EmilyMcDougallArt My pleasure! Here's the script if you want to use Arnold's aiFocusDistance attribute instead: connectAttr -f distanceDimension1.distance shotCamShape.aiFocusDistance"; I name my render cameras as shotCam, so you'll likely need to rename shotCamShape to cameraShape1, or to whatever you have your camera named as
@@Double_Vision I'm guessing you need to add the word SHAPE in your first term like this. connectAttr -f distanceDimension1Shape.distance shotCamShape.aiFocusDistance;
Thnak you so much. I was doing the same with a dimension tool constraint on the center of interest for a while... but using the measured distance manually in the "Focus Distance" of Arnold field... This is gonna make me spare soooooo much time !
Here's the Maya script I use to do this more quickly:
Create a measure tool, move one locator to the focal point, and parent the other locator to the camera
Then paste this into the script editor or the Command Line in the lower left of the screen:
connectAttr -f distanceDimension1.distance cameraShape1.focusDistance;
Way faster, and you can even save it into a Shelf button
Genius! Thank you so much for sharing!
@@EmilyMcDougallArt My pleasure!
Here's the script if you want to use Arnold's aiFocusDistance attribute instead:
connectAttr -f distanceDimension1.distance shotCamShape.aiFocusDistance";
I name my render cameras as shotCam, so you'll likely need to rename shotCamShape to cameraShape1, or to whatever you have your camera named as
@@Double_Vision I'm guessing you need to add the word SHAPE in your first term like this.
connectAttr -f distanceDimension1Shape.distance shotCamShape.aiFocusDistance;
Thanks for this!
@@Double_Vision Thanks a lot bro!
Thnak you so much. I was doing the same with a dimension tool constraint on the center of interest for a while... but using the measured distance manually in the "Focus Distance" of Arnold field... This is gonna make me spare soooooo much time !
you are the one who saved me in internet
So cool! Thanks a lot Emily!
Thank you for this and your other resources!
Very helpful, thanks for sharing.
Awesome thanks so much Emily!
Wow thank you so much, I was curious about this thing, and you answered all my questions. Really helpful :D
Thank you very much!
Just found this gem and see that there aren't any newer videos. Shame, but hope you are busy with better things to do ;)
Fantastically useful!
mam you are such a great it is very informative tutorial thank you please make more videos
perfect!
awesome, thanks so much for this!!
Thanks
Good video
Hey please make some more tutorial for maya please 🥺🙏
What was the end result man ??