Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2020-02-18 00:41:19



Reply to topic  [ 2 posts ] 
Derendering All Avatars 
Author Message

Joined: 2016-06-19 21:33:37
Posts: 146
Location: San Francisco bay area, CA, USA
Reply with quote
This is a simplistic Lua script which uses a command pulled from chat text to enable derendering avatars rezzing after the command is invoked. It leverages the callbacks OnSendChat() and OnAvatarRezzing() via Cool VL Viewer's Lua scripting as defined here. Once loaded, it is invoked with /da [on|off]. Passing no argument displays the current state.

When enabled, all newly rezzing avatars (except friends) will be requested to derender via DerenderObject(). An array (Lua table) will hold the ids of derendered avatars, such that when the function is disabled, the viewer can be instructed to allow rendering again for those avatars when a server update occurs for them. Note: avatars will not derender/rerender immediately. See the documentation listed above for details.

I make no warranties for this script and it is a 'use at your own risk'. The enabled state is not preserved between viewer restarts or indeed Lua script reloads. I have extracted the attached script from my larger, master script. Feel free to use and alter as you will. I will try to answer questions related to it.

Enjoy!


Attachments:
derenderAvatars.txt [3.22 KiB]
Downloaded 2 times
2020-02-07 20:54:22
Profile

Joined: 2016-06-19 21:33:37
Posts: 146
Location: San Francisco bay area, CA, USA
Reply with quote
A coupe of small corrections to the file in the op.
  • corrected function comments
  • renamed variable


Attachments:
derenderAvatars_1.txt [3.25 KiB]
Downloaded 5 times
2020-02-07 23:33:07
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.