Snippets
That is funny... I've got a UISliderColours script in my "Utils" folder, too ;-) - Guess I'll rely on your version from now on.
 
everlaster updated Snippets with a new update entry:

v1.1.0

TL;DR
  • VR selection line settings for width, color and alpha
  • FrameRateControlEE based on FrameRateControl by @MacGruber
VR selection line settings

With the help of a mysterious stranger on Discord, I've expanded VR Pointer Settings to include width, color and alpha settings for the selection line from the VR hand to an object in the scene:
View attachment 387632
The line drawn by VAM is still there...

Read the rest of this update entry...
 
Nice to see someone maintain the FrameRateControl plugin - can you add
SuperController.singleton.onSceneLoadedHandlers += OnSceneLoaded;
And only pause the scene once loaded if the option is checked? Otherwise if you load a scene and click away it will pause and not load the scene until VAM has focus again. I made my own version of MacGruber's code for this reason but I never published it.

Oh thanks for the turn off trackers plugin, that was always a pain on startup!
 
Nice to see someone maintain the FrameRateControl plugin - can you add
SuperController.singleton.onSceneLoadedHandlers += OnSceneLoaded;
And only pause the scene once loaded if the option is checked? Otherwise if you load a scene and click away it will pause and not load the scene until VAM has focus again. I made my own version of MacGruber's code for this reason but I never published it.
I think this already works since MacGruber.Essentials.11 (update notes), my version being based on 16

Oh thanks for the turn off trackers plugin, that was always a pain on startup!
(y)
 
everlaster updated Snippets with a new update entry:

v1.1.2

  • Fixed issue in FrameRateControlEE (also present in the original) where "Pause VaM when not focused" did not allow the automatic default scene loading to proceed on startup or when restarting via Hard Reset (thanks @redeyes !)
    • The reason was that the plugin caused VaM to be paused before the first scene load had had a chance to begin
    • This only really matters if "On Startup Skip Top Menu and Load Default Scene" is checked in VaM User Preferences Misc
 
Hi @everlaster, I tried to replace my SliderColour script with yours, but in some occasions, your approach to use Object.Find results directly crashes with NullPointer exceptions (couldn't figure out why on some sliders and not others - they were all the same, same no-parent, etc.). In my script, I use the following to find the Image components
C#:
UISliderTrigger trigger = containingAtom.GetStorableByID("Trigger") as UISliderTrigger;
Slider          slider  = trigger?.slider;
if (slider != null)
{
    AcquireImage("Track",  slider.transform,  ref m_imgTrack,  ref m_jsonTrackColor,  ref m_jsonTrackAlpha);
    AcquireImage("Bar",    slider.fillRect,   ref m_imgBar,    ref m_jsonBarColor,    ref m_jsonBarAlpha);
    AcquireImage("Handle", slider.handleRect, ref m_imgHandle, ref m_jsonHandleColor, ref m_jsonHandleAlpha);
}
and AcquireImage is then using GetComponent<Image>
C#:
protected void AcquireImage(string _strImage, Transform _t, ref Image _image, ref JSONStorableColor _col, ref JSONStorableFloat _alpha)
{
   _image = _t.GetComponent<Image>();
Not sure that method has other disadvantages, but it hasn't crashed on me so far...
 
@HAL9001 Fixed :) I had forgotten that the reParentObject transform changes depending on whether the atom is parented to a subscene, so instead of
C#:
atom.transform.Find("reParentObject");
one must use
C#:
atom.reParentObject
to access the reParentObject transform in all cases to ensure the script is subscene compatible.
 
everlaster updated Snippets with a new update entry:

v1.2.0: four new modules

BulkAllowPossessGrab
  • enable or disable Allow Possess/Grab for Position or Rotation
  • execute via UI or trigger
  • select which joints to include in the operation

HairColorChangerEE

Improvements to the original script from LarrysArms.HairColorChanger.2:
  • hair list is automatically synced when navigating to plugin UI, opening Copy From popup, loading a hair preset, and loading an appearance preset
  • hair list can be synced via...

Read the rest of this update entry...
 
everlaster updated Snippets with a new update entry:

v1.3.1

  • FrameRateControlEE: fixed issue where toggling "Use target frame rate" off did not work until VSync mode was changed
  • UISliderSync: toggling "Slider is interactable" off now updates the slider to immediately have the value of the synced float parameter
  • UIToggleSync: toggling "Toggle is interactable" off now updates the toggle to immediately have the value of the synced bool parameter

Read the rest of this update entry...
 
It would so useful to have a macro that ads a button to each morph in the VaM UI that when pressed deletes the morph file from the folder. It's so painful to look up the morph in windows explorer then delete. I have about 1000 morphs that need deleting after I review them on the model. Maybe more. Please help!
 
everlaster updated Snippets with a new update entry:

v1.4: UITextSync, VRControlGizmos

UITextSync (New module)

Similar to UIToggleSync and UISliderSync, this allows you to sync the text from a string parameter to a UIText atom's text panel. Some examples: another UIText's text parameter, a plugin's label parameter, presetName of any preset type, texture URL, and any string parameter registered by some plugin.

Supports auto fitting the text to the available area (decreases font size to a defined minimum font size in order to...

Read the rest of this update entry...
 
It would so useful to have a macro that ads a button to each morph in the VaM UI that when pressed deletes the morph file from the folder. It's so painful to look up the morph in windows explorer then delete. I have about 1000 morphs that need deleting after I review them on the model. Maybe more. Please help!
That's a good idea (although only possible for local morphs, not packaged ones). However that would be more in the domain of UXPlus, my paid user experience & UI modification plugin. I'll put it on the list, and if I implement it I'll let you know!
 
everlaster updated Snippets with a new update entry:

v1.4.2: VaM versions compatibility

This update is relevant to users who don't have the latest VaM (v1.22) and to creators who depend on these scripts and release content for users who may not have the latest VaM.

I investigated the compatibility of each script with different VaM versions and made some fixes:

- removed VaM 1.22 requirement from UISliderColors, UISliderSync and UITextSync
- alert user if a script requires a newer VaM version than what they currently have (as opposed to the obscure script compilation error...

Read the rest of this update entry...
 
everlaster updated Snippets with a new update entry:

v1.5: FocusDistance

FocusDistance (New module)

By default, VaM does not save the camera focus distance, only the camera position and player height. It can be annoying to have to reposition and zoom the camera to enable right mouse button to properly orbit the intended focus point such as a person's face. This plugin solves that problem, and allows you to also adjust the focus distance via trigger.

View attachment 430144

SaveLoadedScene
  • ...

Read the rest of this update entry...
 
Back
Top Bottom