Congratulations! You are a March Madness BONUS BUYER!

Enjoy 10% OFF* ALL PURCHASES STOREWIDE or enjoy 30% OFF items with a SKU number lower than 16000 & 30% OFF items from Runtime DNA.

Offer valid for intended recipient only
* 10% discount DOES apply to Gift Cards and Memberships. **Items must be in cart simultaneously for discount to apply.
[ collapse ]

DzNode scale controls changed in DS4.5?

cridgitcridgit Posts: 917


I'm investigating some script changes since upgrading to DS4.5 and have tracked it down (I think) to possible changes to the DzNode.getScaleControl functionality since DS4.0.

There are 4 related functions


In DS4, after calling setValue() on any of the scale controls, DS would propagate the W scale to the underlying X, Y and Z scale controls and reset the W scale control to 1, as follows:
//Node's initial scale vector (1, 1, 1, 1)
//Node's final scale vector (1, 2, 2, 2)

It appears now that in DS4.5 the W scale is not propagated to the underlying controls, as follows:

//Node's initial scale vector (1, 1, 1, 1)
//Node's final scale vector (2, 1, 1, 1)

Can anyone pls confirm whether the scale controls implementation was changed in DS4.5?

Post edited by cridgit on


  • Richard HaseltineRichard Haseltine Posts: 32,646
    edited December 1969

    Looks plausible - formerly drop to floor did the same, switching the scale from the master control to the axis controls but now it doesn't (and drop to floor is a script).

  • ketthroveketthrove Posts: 63
    edited December 1969

    The set value on the properties did not change, however there was a new variant of DzNode::setLocalTransform that was written that tries to maintain the value in the general scale property. DzNode::setWSTransform now calls this new variant. So depending on what you do before or after the setValue on a scale property, it may cause what you are seeing. The new variant of setLocalTransform will cause the general scale to be set to a non-one value when any two of the component scales matches values.

Sign In or Register to comment.