Left Hand
I need to animate a LEFT hand in Vizard...is there some easy way to mirror the stock hand.cfg??
|
If you are using the hand module, then you can use the following code:
Code:
import hand Code:
hand = viz.add('hand.cfg') |
Using the second option gives me a darkly-shaded, flipped-over (palm facing up) hand. Is there a better way?
|
If you run the following script does the shading on the left hand look darker than the right hand?
Code:
import viz |
Wow...those look perfect. I think there is something else in my code that is mucking things up. I'll investigate...
|
Does messing with window POV commands have this effect?
|
Can you just post a sample script of yours that makes the left hand darker?
|
Here it is:
myHand = viz.add('hand.cfg',pos=(0.1,1.8,0.5),euler=(0,-90,0)) myHand.scale(-1,1,1) myHand.enable(viz.FLIP_POLYGON_ORDER) myHand.setScale(20,20,20) It's the setScale command. Not sure why, but the hand becomes right handed and appears darker. |
Your sample code is undoing the negative x scale, which is required for inverting the hand and making it look left handed. Use the following code instead:
Code:
myHand = viz.add('hand.cfg',pos=(0.1,1.8,0.5),euler=(0,-90,0)) |
Nice! Many thanks...
|
All times are GMT -7. The time now is 10:34 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC