Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
MAYA:MAYA ForumMAYA TutorialsMAYA

Re: 1 Slider, 2 Attributes

COW Forums : MAYA

VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread



Steve SayerRe: 1 Slider, 2 Attributes
by on Jan 6, 2012 at 6:38:43 pm

When you're trying to add math to commands you are often required to put it in parentheses. So this might work:
else setAttr "BodyBlendShape.ConvexNoseBS" (-1 * $mySliderPos);

Another way to get rid of a negative number is with the abs() function. abs($mySliderPos) will always return a positive value.

Remember you're still going to need to add some extra code to zero the unwanted blendshape in both cases, since I assume you don't want them to overlap and add to one another.

Hope that helps,

-Steve


Posts IndexRead Thread
Reply   Like  
+1
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]