Digital Art Zone

 
     
Script TypeError
Posted: 06 November 2012 06:11 AM   [ Ignore ]
New Member
Total Posts:  9
Joined  2009-05-31

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

var matrix DzMatrix4(1000001001000001);
Renderer.riTransform(matrix); 


I get the error message “TypeError: cannot call riTransform(): argument 1 has unknown type `DzMatrix4&’ (register the type with qScriptRegisterMetaType()) <anonymous>()@:82”.

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

Profile
 
 
Posted: 06 November 2012 11:03 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRank
Total Posts:  329
Joined  2003-10-09

You are missing the new operator.

var matrix = new DzMatrix4(1000001001000001); 

-Rob

 Signature 

- Documentation Center
- Install Manager
- DAZ Studio 4.x
- DSON Importer
- DSON File Format Specification

Profile
 
 
Posted: 06 November 2012 11:42 AM   [ Ignore ]   [ # 2 ]
New Member
Total Posts:  9
Joined  2009-05-31

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

Profile
 
 
Posted: 19 July 2013 04:10 AM   [ Ignore ]   [ # 3 ]
New Member
Total Posts:  9
Joined  2009-05-31

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.

Profile