Visual Maxscript and Attibute Editor

Hi all.

I have a problem beacause I'm not a pro in scripting and I need to create a little windows dialog in the Visual MAXScript. In this windows I have a slider and I must to connect this slider with an attribute holder wich control a dummy by a wire parameter. I'm not sure if I'm very clear ^^
So I made a little script but there is a problem and I don't know how to do.
If somebody can help me it will be really fantastic! :)
Thanks!

Here is my wonderfull script:
.
.
.
.

rollout unnamedRollout "Untitled" width:162 height:300
(
slider sld1 "Slider" pos:[8,8] width:141 height:44
on sld1 changed val do
$Circle005.modifiers[#Attribute_Holder].Custom_Attributes.Pied_Milieu = val
)
createdialog unnamedRollout

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
klemt's picture

It's really really cool of

It's really really cool of you!!! Thank you very much Barigazy for all your work!
It's perfect :)

I will send to you a picture when the project will be finish.
Have a nive day!
Thank you again!

Klemt

barigazy's picture

You must vizit this site if

You must vizit this site if you already not.
http://paulneale.com/scripts.htm
For your rig the best solution is PEN Attribute Holder

barigazy

klemt's picture

Ok I will send to you all

Ok I will send to you all files ^^
Can you have your mail plz?

Really thank for all!

barigazy's picture

Pied Script

Hi klamt,
i finish your tool. See how to use it.
By the way, i don't speak french by i try
to make french version.Give me some credit for that :)

And this is your script

AttachmentSize
pied_script.ms 3.5 KB

barigazy

barigazy's picture

If you create manually

If you create manually controls for the Atribute_holder modifier then this is normal behavior, but if you not then look the line in my CA definition *on spn1 change val do ...*
how to connect modifier slider with rollout slider.
If you not understand this, send me a mail with a *.max file and *.ms for the rollout and if you have *.ms for the CA.

barigazy

klemt's picture

Another question: when I

Another question:
I use the first script with "Pied milieu".
So, when I activate "Auto Key" and I activate the slider, it created key on the timeline so it's perfect. But the sliders in the windows "Untitled" don't move when I move the timeline. How to link sliders to the timeline so that when I move the timeline, sliders moves too?

barigazy's picture

Whitch slider, again post

Whitch slider, again post screenshot

barigazy

klemt's picture

Yeah! It's perfect! Thank you

Yeah! It's perfect!
Thank you very much barigazy! :)

Klemt

barigazy's picture

My pleasure :)

My pleasure :)

barigazy

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.