ScriptSpot

Forum topic · General Scripting

Changing slider value causes moving bones?

By Andrew Salov · 2012-12-22

Description

Hi guys. Could you help me with a simple line in script for my custon attribute. I`m looking for how to make the bones  move  when I changing slider value. Or maybe you can request something else. The final point is to set up a face emotions with slider in cust. att.For  example, one slider is responsible for "suprised" and other slider - "angry"

slider angrySl "Angry" align:#left range:[0,100,0]

on angrySl  changed val do

(

BrowR_x = ? -- what should I put here to have a dinamic val. changing (from 0 to 7, for example)while i moving my slider angrySl

BrowR_y

.....etc

)

Comments (2)

Andrew Salov · 2012-12-22

Cool! It works for me as i want. Thank`s

fajar · 2012-12-22

...its not bone but pos (example box selection)...

$box.pos.x=val..... .x mean for x axis....

simple but youve got the idea, right?