Jump to content

Transfer object parameters from one object to another


You are about to reply to a thread that has been inactive for 3102 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I'm trying to write a script that will take the output of llGetPrimitiveParams, and transfer it to another object. So far my script looks like this:


1. Store output of llGetPrimitiveParams in a list

2. llDumpList2String params

3. llSay string params

4. Receiving object listens for params

5. llParseString2List on params

 

The problem here is that llParseString2List does not preserve data types (every item in the list becomes a string), so when I run llSetPrimitiveParams in the new object with list params it chokes with an error.

How can I preserve data types and transfer primitive params from one object to another?

Link to post
Share on other sites

You might be interested in the primset script,  which utilizes list_cast to process argument lists over a chat channel for llGet/SetLinkPrimitiveParams,  llLinkParticleSystem,  llSetLinkTextureAnim, and llSetKeyframedMotion.  The format of the messages is described on the wiki page.

The primcontrol hud provides a gui to send messages to primset.

primset and primcontrol are open source.

 

Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 3102 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...