Jump to content

Transfer object parameters from one object to another


Asha Arida
 Share

You are about to reply to a thread that has been inactive for 4145 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 comment
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 comment
Share on other sites

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...