ScriptSpot home

Forum topic · General Scripting

Putting a slider value in to a morpher value

By Script_Butler · 2012-02-01

Description

Hi all!

I have a slider manipulator that i want the value of to change the value of a morpher.

Here's my code

sliderManipulator name: "sld1" xPos:0.217586 yPos:0.902287 isSelected:on

on sld1 changed .value do
(
$sphere01.morpher [1] .value = sld1 .value
)
)

createDialog test

When I slide the slider the morpher value doesn't change. What have i done wrong?

Comments (7)
Script_Butler

Forgive my ignorance!

Please forgive my ignorance but how have you answered my question?

Are you saying there is no way to script this? Or are you just telling me to use wiring parameters to achieve it? I don't want to manually wire parameters, I want my script to do it automatically for me.

Sorry but I am confused by your answers!

Reply to Script_Butler
Panayot Karabakalov

hmm...

I think i talk readable english.
As you want manipulator then you not need rollout. This i repeat for 3th time. Where i said its not scriptable? Yeah, i have not time to write the wire-param part for you. Search in the help and/or the forum and you'll find info about.

Cheers!

Reply to Panayot Karabakalov
Script_Butler

No problem.

I'm still none the wiser! Sorry.

I'm sure i'll figure it out somehow. The main problem is trying to search for the right tihng. I've tried searching maxscript help and on here but find nothing and i'm such a beginner that i struggle to know exactly what i need to type.

It's a nightmare.

Thanks for trying to help though, i appreciate it.

Panayot Karabakalov

well... i already answer then

you not need rollout dialog for sliderManipulator

Panayot Karabakalov

Hi

Somehow i not catch the idea here. The sliderManipulator is a Helper, ie scene object and not a UI-Controller (like button for ex.). You can wire what you like to this slider without extra rollout dialogs.