Question on X,Y,Z Translate values (Parameter settings)

cosmo71cosmo71 Posts: 3,609

When loading a prob for example the nudge for X,Y,Z translate is at 1.0 is it possible to change this value in general so everytime I load a prob (no matter what a prob) has a nudge for example at 0.2?

Comments

  • Not as far as I know, but it should be fairly easy to script a command you could run on one or more selected items. This will set the nudge value to the number on the second line for all translation controls on selected items that aren't hidden - just paste it into a text file, then save with the type set to All (*.*) as Set Nudge.dsa.

    // Enter the desired nudge value herevar nudge = 0.2;// Get all of the selectd items in the scenevar items = Scene.getSelectedNodeList();// Variables for storing the translation controlsvar xTrans, yTrans, zTrans;// Go through each item in turnfor ( var n = 0 ; n < items.length ; n++ ) {	// Get X translation control	xTrans = items[ n ].getXPosControl();	// Check we succeeded	if ( xTrans ) {		// Check the control is not hidden		if ( ! xTrans.isHidden() ) {			// Set the nudge value			xTrans.setSensitivity( nudge );		}	}	yTrans = items[ n ].getYPosControl();	// Check we succeeded	if ( yTrans ) {		// Check the control is not hidden		if ( ! yTrans.isHidden() ) {			// Set the nudge value			yTrans.setSensitivity( nudge );		}	}	zTrans = items[ n ].getZPosControl();	// Check we succeeded	if ( zTrans ) {		// Check the control is not hidden		if ( ! zTrans.isHidden() ) {			// Set the nudge value			zTrans.setSensitivity( nudge );		}	}}

     

Sign In or Register to comment.