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.

Buy any "Newly Mad" or "Still Mad" and get an EXTRA 60% OFF**:

Star 2.0 Stellar BundleCallie 6 Pro BundleToon Generations 2 Essentials for Genesis 3Karen 7 Pro BundleCaptain Charisma for Genesis 3 Male

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 ]

Script TypeError

JarelJarel Posts: 14

Hi. Could some tell me what I'm doing wrong here please?


var matrix = DzMatrix4(1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1);
Renderer.riTransform(matrix);


I get the error message "TypeError: cannot call riTransform(): argument 1 has unknown type `DzMatrix4&' (register the type with qScriptRegisterMetaType()) ()@:82".

Edit: Should probably have added I'm messing about with one of the render scripts.

Post edited by Jarel on

Comments

  • rbtwhizrbtwhiz Posts: 1,136
    edited December 1969

    You are missing the new operator.

    var matrix = new DzMatrix4(1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1);

    -Rob

  • JarelJarel Posts: 14
    edited December 1969

    Thanks. I've just tried that and no change I'm afraid, same error message.

  • JarelJarel Posts: 14
    edited December 1969

    I'm back to this and still stuck. Accessing member functions of the matrix like preScale() seems to work ok but using it as a parameter to Renderer.riTransform or Renderer.riConcatTransform gives the unknown type error.

    I'd appreciate it if someone could tell me if I'm doing something (else) wrong please.

Sign In or Register to comment.