#1
|
|||
|
|||
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 ] |
#2
|
|||
|
|||
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) |
#3
|
|||
|
|||
Thank Jeff, that's exactly what I needed
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|
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 |