Giter Club home page Giter Club logo

prim-params-editor-plugin's Introduction

nPose Prim Params Editor plugin

Requirements

nPose V4.00 and above.

Usage

The plugin contains 2 scripts nPose Prim Params Editor plugin, main (we will call it the mainscript) and nPose Prim Params Editor plugin, storage (we will call it the storagescript).

main Script

The main script has to be placed into the linkset you want to manipulate. This can be the nPose main Object and/or a prop or if you want to manipulate both then place it into both.

storage Script

The storage script is optional. If you don't work with props, you don't need it. If you work with props, you may want to rez a prop with the same appearance that was selected previously. To achieve this, place the storage script into the main object.

Prim description

To "address" a prim inside a linkset we use the description field of the prim to give it an identifier. Please don't use plain numbers as identifier. If you want to give a prim more than one identifier then separate the identifiers by ~. You can also use one identifier for more than one prim.

Command Syntax

PRIMEDIT|command~identifier~parameter[~parameter...][~command~identifier~parameter[~parameter...]...]

Example

PRIMEDIT|COLOR~mainObject~-1~<1.0, 0.0, 0.0>

This will set the color of all faces of the prim with the description mainObject to red.

commands

command Version parameters description
TEXTURE 1.00 integer face, string uuid or name puts a texture onto the prim
COLOR 1.00 integer face, vector color sets the color of a prim
ALPHA 1.00 integer face, float alpha sets the transparency of a prim
REL_POS_LOCAL 1.00 vector referenceSize, vector currentSize, vector targetPosition moves a prim within the linkset to a postion (relative to the current size of the object)
REL_SIZE 1.00 vector referenceSize, vector currentSize, vector targetSize scales a prim (relative to the current size of the object)
OFFSET_POSITION 1.01 vector offset, vector targetPosition moves a prim to offset+targetPosition
OFFSET_REL_POSITION 1.01 vector offset, vector referenceSize, vector currentSize, vector targetPosition moves a prim to offset+relativeTargetPosition
PRIM_... 1.00 see below see below

All non deprecated "commands" (but one) of the llSetPrimitiveParams LSL command are implemented.

PRIM_MATERIAL
PRIM_PHYSICS
PRIM_TEMP_ON_REZ
PRIM_PHANTOM
PRIM_POSITION
PRIM_SIZE
PRIM_ROTATION
PRIM_TEXTURE
PRIM_COLOR
PRIM_BUMP_SHINY
PRIM_FULLBRIGHT
PRIM_FLEXIBLE
PRIM_TEXGEN
PRIM_POINT_LIGHT
PRIM_GLOW
PRIM_TEXT
PRIM_DESC
PRIM_ROT_LOCAL
PRIM_PHYSICS_SHAPE_TYPE
PRIM_OMEGA
PRIM_POS_LOCAL
PRIM_LINK_TARGET
PRIM_SLICE
PRIM_SPECULAR
PRIM_NORMAL
PRIM_ALPHA_MODE
PRIM_ALLOW_UNSIT
PRIM_SCRIPTED_SIT_ONLY
PRIM_SIT_TARGET

prim-params-editor-plugin's People

Contributors

howardbaxton avatar leonamorro avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rubb

prim-params-editor-plugin's Issues

Link Number error

In the nPose Prim Params Editor plugin, main V1.00.lsl the function "getLinkNumberList()" always returns link number 0 in a single prim build, even when an AV is linked to the prim. This does not follow with "llGetLinkNumber( )" as the link number changes from 0 to 1 when someone is seated. The script fails when seated but works fine when standing.

Fullbright issue with setting to enabled

While a user was attempting to set fullbright they found it was not working with this line:
PRIMEDIT|PRIM_FULLBRIGHT~engines~1~TRUE

Not sure why but I tried it with a 1 instead of TRUE and it works.
PRIMEDIT|PRIM_FULLBRIGHT~engines~1~1

I also tested FALSE which seems to work just fine using FALSE or using 0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.