|
Hi folks,
I’m fairly new with maxscript and this issue has been turning my brain for the last day.
I have a few finished rigs that uses a control object with an Attribute Holder holding several sliders for animation (created with the Parameter Editor). These lack a bit of functionality and I want to add a button to the right of each slider that functions as SetKey and opens the track in Curve Editor.
So I’m working on a script that it shortens the Width of all the sliders, aligns them to the left and adds the button to the right of each.
I’ve coded attributes and rollouts from scratch earlier, but I’m having some troubles with the code for modifying the old Custom Attributes.
So far I have managed “extract” the Custom Attributes code from the Selected Object with and stored this in a stringStream variable.
The problem is that I can’t figure out how to modify this code and add it back to the object. (I don’t want to loose the old wire parameters so maybe I’m doing this all wrong with stringStream)
As I see it I basically need to do these things:
- Search for “slider” and Width:”
- Store the slider track name in an array
- Modify Width:<value>
- Add a button after each slider
I pretty much got stuck after skipToString custAttributeCode “Slider”.
Any help is very appreciated :)
|
|
|