[Closed] Script Hair Dynamics Run button?
Is there any interface that scripts the hitting of the run button of the hairmod in the dynamics rollout?
Can’t seem to find it, while most properties are exposed…
Thanx,
-Johan
To perform automated UI handling (to simulate button click for example) see UIAccessor and DialogMonitorOPS interfaces.
I think it should be possible to fake Run button click. But these two interfaces are a little difficult to use at first.
Calling GetNextWindow to get the HairMod window handle and PressButtonByName to simulate Run button pressed, I think it should be the process to hit this button.
If I have time I’ll try to code that.
Hi ypuech,
I tried using it, and I got some values back, but I was unable to find hairMod settings…
Did find the modifierPanel i think…
And when digging further in with nextWindow etc… it crashed max after being busy for several minutes listing the subwindows… lost the code gave up… :hmm:
I don’t think this is worth the effort… because probably you would need to have the modifier panel open anyway to find it, and that defeats my whole plan in the first place…
So if any you would happen to have the direct code to the modpanel.hairmod settings i’m very interrested, otherwise I’m going to leave it at that…
Thanx though, learned some other new interresting code… funny when you think you’ve seen most functions and structs and interfaces there’s always something new!
-Johan