WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-07-2011, 04:38 AM
Chapre Chapre is offline
Member
 
Join Date: Sep 2010
Posts: 36
Question multiplication on link position matrix

Hello;
I want to create an operator on a link (position) that should always half the first value of the input matrix (list) and leave the rest intact.

EX: imput matrix=[ a,b ,c ] * operator ------> output matrix=[ a/2 , b ,c ]
Reply With Quote
  #2  
Old 07-07-2011, 11:21 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The <link>.preScale command will pre multiply the input matrix with the specified scale:
Code:
link.preScale([0.5,1,1],target=viz.LINK_POS_OP)
Reply With Quote
  #3  
Old 07-08-2011, 02:55 AM
Chapre Chapre is offline
Member
 
Join Date: Sep 2010
Posts: 36
Thank Jeff, that's exactly what I needed
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove link and have object drop/collide? cgibb Vizard 6 03-02-2010 05:18 PM
writing joystick position to a data file Saz Vizard 3 12-17-2008 06:18 AM
Can you link the position of a tracker to the orientation of an object? michaelrepucci Vizard 1 09-19-2008 11:23 AM
default start position erchrastil Vizard 2 06-23-2008 09:15 AM
Avatar always returns in initial position pattie Vizard 2 08-31-2006 09:15 PM


All times are GMT -7. The time now is 07:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC