Expose values in the tools ui

Expose values in the tools ui

Ihno
Collaborator Collaborator
1,679 Views
9 Replies
Message 1 of 10

Expose values in the tools ui

Ihno
Collaborator
Collaborator

Is it possible to expose values in the tools ui? like this for example:Print_in_ui.jpg

0 Likes
1,680 Views
9 Replies
Replies (9)
Message 2 of 10

Swordslayer
Advisor
Advisor

Could you elaborate? The ui controls pictured are labels, they can either be static or dynamically updated, let's say from the event handlers of the controls the values that are displayed depend on. You can add them in the Custom UI section of the maxtool.

0 Likes
Message 3 of 10

Ihno
Collaborator
Collaborator

Thans for the quick Answer.
For my modifire i need to set min and max values.
I originally planned to use the local rotation of a bone to change vertexcolor of an Muscle-Object.
Now i know that i can´t get a proper local rotation in relation to the parent, i´ll have to find another way, maby the distance (with offset) between the child and the parent of my bone-object.

Anyway, i´ll have to define a min and max value.
Originally i wanted to create Buttons to do that, but there is no Parameter: Button note.
So, propably i´ll have to set it manually.
In order to do so, it will be nessesary to see the current value while moving the bone.
And it would be nicer to see that in the modifires UI than in the script listener.
To cut a long story short, it will have to be dynamically updated.

 

0 Likes
Message 4 of 10

Swordslayer
Advisor
Advisor

Well, my experience with MCG is limited but I don't think there's currently a way to pass values/information to rollout controls. If you want to make the modifier in MCG anyway, you could just add simple custom attributes block to it which would show the info you want. 

0 Likes
Message 5 of 10

Anonymous
Not applicable

are you after something like this ? Where I display Resultant Cols = (Cols *2) + 1

 

SimpleWeave4.jpg

 

0 Likes
Message 6 of 10

Anonymous
Not applicable

also mcg Buttons here, I'm no maxscript expert but I just chucked something like this in the Custom UI for the hell of it...and it works...

 

button btnFaceOri "Face Orientation" width:135 height:20

on btnFaceOri pressed do macros.run "xView" "xView_Face_Orientation_Checker"

 

MCG_Buttons.jpg

0 Likes
Message 7 of 10

Ihno
Collaborator
Collaborator

Looks prommissing i´ll take a look onto this.
Maby you could post the MAXScript of the cols lable?
I´ll take a look into your SimpleWave graph on ScriptSpot anyway.
But for other "Graph Explorers" it would be nice to have something to mark as solution in here.

0 Likes
Message 8 of 10

Anonymous
Not applicable

maybe i'll wait and see if it solves your problem coz i thought what i did was sooooo simple...nah it wouldn't be the answer...

0 Likes
Message 9 of 10

Ihno
Collaborator
Collaborator

Ok, this thing needs a Parameter node as input.

In my chase it would be nessesary to print a dynamic value form the graph without a direct connection to a Parameter node.

But its good to now.

I allready have tried to get a lable to print a var witch i set in the graph but somehow the UI part it dosent find it.

I´m realy not into MAXScript or a nother lanuage anyway.


I wish someone could make a sample Graph witch shows and explanes every possible ui element you could get out of it.
Dropdown would be nice for example.

I´m very corious about the Extension/s for max 2016 hopefully the MCG gets more sophisticated. 

I guess at the moment i´ll have go on using with my simple workaround witch is a activatable print node with string label. It still prints to the listener but you can turn it off and name it witch helps alot.

0 Likes
Message 10 of 10

Anonymous
Not applicable

I am also interested to see if it is possible to expose a value computed inside the graph to the UI.  For a modifier MCG. Custom UI is very handy and i see no problem adding functons nested in the UI rollout definition. Those functions and/or custom lables/buttons could only access variables from within the UI rollout itself (i.e. mcg params exposed in UI). I could not find a way to acces a value computed in the graph, from within the UI rollout.

If anybody knows how this can be done, please share the knoledge. MCG is great, it would be really helpful to be able to access local variables from ui or from outside maxscripts, for modifiers not only for function MCGs

0 Likes