Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1037

Adding Focal Length/Distance Lock to Camera Lock Script

$
0
0

I'm using a script called Camera Lock by Richard Haseltine. It locks all cameras, but leaves out a few things. I'd like to add locking focal length and focal distance to it, but adding code like getFocalLength(), or getFocalDistance() only causes the script to fail. I added them like the working code pieces within the script for locking x position and rotation below. (actual script has more before and after and Googles by the above name and author)

control = selectedNodes[ n ].getXPosControl();

if ( control ) {control.lock( true )}

control = selectedNodes[ n ].getXRotControl();

if ( control ) {control.lock( true );}

Also the script also locks lights which is not what I want. How would I disable that? It could be why focal length and distance code didn't work.


Viewing all articles
Browse latest Browse all 1037

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>