Substance Painter
In this start to finish texturing project within Substance Painter we cover all the techniques you need to texture the robot character.
# 1 13-06-2012 , 08:35 PM
Registered User
Join Date: Apr 2012
Posts: 32

melscript sine wave wiggle position?

Is there a mel command to create a wiggle effect, but in a sine wave fashion so it sort of oscillates up and down, basically creating a loopable effect

# 2 13-06-2012 , 09:26 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
I dont know about a melscript but this would be easy to animate, all you need to do is create a CV curve in the shape you need like I created then do a extrude with a plane of your shape, then sellect the top and botton curve control point and scale them up and down..........dave

Attached Thumbnails



Avatar Challenge Winner 2010
# 3 14-06-2012 , 12:41 AM
ctbram's Avatar
Moderator
Join Date: Jan 2004
Location: Michigan, USA
Posts: 2,998
what are you trying to do? Create a shape? Animate something along the path? Does it need to be random?

Your question does not make it very clear what your intent is, which would be helpful.


"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675
# 4 14-06-2012 , 09:05 AM
honestdom's Avatar
The Nurb Herd
Join Date: Oct 2007
Location: London
Posts: 2,381
i've not done any expressions or mel in a while, but i remember it being something like sin(something)

edit: googled it. Ball.translateY = sin(Ball.translateX);

# 5 14-06-2012 , 12:03 PM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
Like Dom said, use the sin function. It doesn't even have to be a script, just add an expression. If you want it to animate up and down, try yourObject.translateY = sin(time);

# 6 18-06-2012 , 09:36 AM
Registered User
Join Date: Apr 2012
Posts: 32

Like Dom said, use the sin function. It doesn't even have to be a script, just add an expression. If you want it to animate up and down, try yourObject.translateY = sin(time);

doh! I failed at basic maths...thanks guys

ravedave I need it to be an infinite loop, so best using an expression I think..I try to move away from manual whenever I can

# 7 18-06-2012 , 10:20 AM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472




Avatar Challenge Winner 2010
Posting Rules Forum 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

Similar Threads