Ahh, I think that there is a slight misunderstanding here. Making a slider in a Javascript program is not a big deal and I don't think one would even use this class for it. There are better suited classes if you are building the entire window with javascript.
The problem, as I understand it, is about customising the user interface by dragging the macro slider from the "Available Objects Window" onto an existing container in the RS environment. One can easily do this, and the script one puts in the options of the slider before dragging will be executed every time the slider value is changed. However, we do not know how to read the current value of the slider within this script. Normally scripts in objects have a variable named "Self" initialised when the script is called and this variable can be used to access the object the script is in. Unfortunately, this appears not to be the case for this macro slider - and probably not for any GUI object scripted this way. When you have a script create the macro slider you should be able to use the GetLevel attribute that the macro slider inherits from the regular r3slider class. But, as I said, this is not the issue here. / Fredrik 2009/11/5 Frank Brübach <[email protected]>: > hi fredrik, I only wanted to know how the syntax for macroslider was > explained so I could build this macroslider js code. > I have found something and have tried a dummy example, but doesn't work. see > attached js file. > bye, frank > > -----Ursprüngliche Nachricht----- > Von: <[email protected]>, <[email protected]> > Gesendet: 05.11.09 20:45:52 > An: [email protected] > Betreff: Re: How can I get the Macroslider to work? > > Nope. I tested with the usual suspects "this" and "Self" to get at the > slider itself. No luck. Perhaps the object triggering the event is > hidden in some, yet undisclosed, variable upon executing the script of > the macro slider... I feel a need for divine intervention here... > *wink* > > I suppose that one can always navigate through the entire tree > starting with GetJS(""), but that seems needlessly cumbersome. > > / Fredrik > > > 2009/11/5 [email protected] <[email protected]>: >> "The full reference manual"? You are joking, right? *grin* >> >> / Fredrik >> >> 2009/11/4 Frank Brübach <[email protected]>: >>> ok, but I need the full "reference manual" for v 6 :) any link for me >>> possible to get it ? I have already started my experiments ;) >>> frank >>> >>> >>> -----Ursprüngliche Nachricht----- >>> Von: "Matthias Kappenberg" <[email protected]> >>> Gesendet: 04.11.09 19:13:55 >>> An: <[email protected]> >>> Betreff: Re: How can I get the Macroslider to work? >>> >>> >>> Big :-) >>> >>> Matthias >>> ----- Original Message ----- >>> *From:*Frank Brübach >>> *To:*[email protected] >>> *Sent:* Wednesday, November 04, 2009 1:27 PM >>> *Subject:* Re: How can I get the Macroslider to work? >>> >>> hi matthias, stefan, I will check it also next days and try to build >>> an js example so far as I know yet this kind of sliders and find all >>> necessary infos about js handling for gui macro sliders :) but I >>> think it's possible. best regards, frank >>> >>> *Von:* "Beg-inner" <[email protected]> >>> *Gesendet:* 04.11.09 03:51:03 >>> *An:* >>> *Betreff:* Re: How can I get the Macroslider to work? >>> >>> Hi Matthias.. >>> >>> Ok thx >>> I have wondered about this for a long time, so if I wait abit more np, >>> you >>> dont need to do this in a hurry, only look at it when you have time >>> over, >>> whenever that might be ! >>> >>> Seems like a nice thing to be abl e to use them, for custom groups of >>> sliders >>> for controlling parts of characters or other anim stuff. (If they are >>> easy >>> to setup that is..=) >>> Especially as you can integrate them where ever you want/need in the >>> RS GUI >>> and so on.. >>> >>> TIA >>> >>> Take Care >>> Best Regards >>> Stefan Gustafsson ( Beg-inner ) >>> A Proud Owner and User of Real3D and Realsoft3D.. >>> >>>> Hi Stefan, >>>> >>>> I've never tried this. >>>> If there's enough time left, I'll have a closer look >>>> on it at the weekend. >>>> >>>> Matthias >>>> >>>>> Hi... >>>>> >>>>> Now that Matthias posted his cool flipbook prj and anim.. I came >>> to think >>>>> of >>>>> a thing I have wondered over... >>>>> Maybe you Matthias (or someone else) knows something about this... >>>>> The 'Macroslider' that you can drag n drop from the menu >>>>> Environments/Customization...'Available Objects Window' (Macros >>> Tab) and >>>>> pla ce into the RS GUI.. >>>>> How do one set it up so you can use such Slider to control some >>> attribute >>>>> or >>>>> whatever of objects and so on ? >>>>> As I am not at all good at JS, I havent figured out what is needed >>> to get >>>>> the sliders value to set an attributes value.... >>>>> >>>>> I didnt find any example on this in the manuals.. >>>>> >>>>> TIA for any clue on how to set this up.. >>>>> >>>>> Take Care >>>>> Best Regards >>>>> Stefan Gustafsson ( Beg-inner ) >>>>> A Proud Owner and User of Real3D and Realsoft3D.. >>> >>> GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! >>> >>> Jetzt freischalten unter *http://movieflat.web.de* >>> >>> >>> _____________________________________________________________ >>> DSL-Preisknaller: DSL-Komplettpakete von WEB.DE schon für >>> 16,99 Euro/mtl.!* Hier klicken: http://produkte.web.de/go/02/ >>> >>> >>> >> > > > > > ______________________________________________________ > GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! > Jetzt freischalten unter http://movieflat.web.de > >
