|
Gearsawe1976 Russell
Registered User
Join date: 30 Oct 2005
Posts: 6
|
06-05-2008 20:59
well ran into a limit I didn't know about. looking for a work around... you know how some parameters can carry over from on prim type to another like the Dimple on a Sphere then change it to a cylinder. Then you have a cylinder that is chopped off a certain percentage.
well I thought this could be done thru a script Known as prim torture which does not seem to be working. any clue?
default { state_entry() { llSetPrimitiveParams([ PRIM_TYPE, PRIM_TYPE_SPHERE, PRIM_HOLE_DEFAULT, <0, 1, 0>, 0, <0,0,0>, <0.0, 0.05, 0.0>, PRIM_SIZE, <2, 2, 2> ]); llSleep (2.0); llSetPrimitiveParams([ PRIM_TYPE, PRIM_TYPE_CYLINDER, PRIM_HOLE_DEFAULT, <0, 1, 0>, 0, <0,0,0>, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0> ]); } }
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
06-06-2008 02:34
Use the legacy PRIM_TYPE for the cylinder change. And you don't need an intermediate sleep.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
06-06-2008 06:06
I wrote this function several years ago: SetPrimTypeChained(list versions, list types, integer holeshape, vector cut, float hollow, vector twist, vector topsize, vector topshear, vector advancedcut, vector taper, float revolutions, float radiusoffset, float skew) { integer version; integer type = -llGetListLength(types); integer len = -llGetListLength(versions); if(type > len) len = type; for(;len;++len) { if(1 == (version = llList2Integer(versions,len))) {//legacy PRIM_TYPE interface, still active for backwards compatability. Introduced in 1.3, phased out in 1.5. if(3 == (type = llList2Integer(types,len)))//PRIM_TYPE_SPHERE llSetPrimitiveParams([version, type, cut, hollow, advancedcut]); else if(type >= 0 && type <= 2)//PRIM_TYPE_BOX,PRIM_TYPE_CYLINDER,PRIM_TYPE_PRISM llSetPrimitiveParams([version, type, cut, hollow, twist.y, topsize, topshear]); else if(4 == type)//PRIM_TYPE_TORUS llSetPrimitiveParams([version, type, cut, hollow, twist.y, topsize.y, topshear, advancedcut]); else if(5 == type)//PRIM_TYPE_TUBE llSetPrimitiveParams([version, type, cut, hollow, twist.y, topshear.x]); // else if(PRIM_TYPE_RING == p) ring shape not arround when this interface was implemented } else if(version == 9) {//new PRIM_TYPE interface. introduced in 1.5, various revisions have added new restrictions if(3 == (type = llList2Integer(types,len)))//PRIM_TYPE_SPHERE llSetPrimitiveParams([version, type, holeshape, cut, hollow, twist, advancedcut]); else if(type >= 0 && type <= 2)//PRIM_TYPE_BOX,PRIM_TYPE_CYLINDER,PRIM_TYPE_PRISM llSetPrimitiveParams([version, type, holeshape, cut, hollow, twist, topsize, topshear]); else if(type >= 4 && type <= 6)//PRIM_TYPE_TORUS,PRIM_TYPE_TUBE,PRIM_TYPE_RING llSetPrimitiveParams([version, type, holeshape, cut, hollow, twist, topsize, topshear, advancedcut, taper, revolutions, radiusoffset, skew]); } } }
SetPrimTypeChained([9,1],[PRIM_TYPE_RING,PRIM_TYPE_SPHERE],PRIM_HOLE_DEFAULT, <0.0, 1.0, 0>,0.95,<0.0, 0.5, 0>,<0.0, 0.5, 0>,<0.0, 0.0, 0>,<0.47, 0.53, 0>,<0.0, 0.0, 0>,1,0,0);
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
|
06-06-2008 07:35
Thanks. oops I was logged in with my wrong account. I'll look it over tonight.
I was trying to implement a feature on U-poser and thought it would be easy and now ran into this problem. Hopefully this will work. Though these hacks I fear do break sometimes:-/ when LL updates their servers.
|
|
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
|
06-06-2008 16:51
well shoot I am not having any luck carrying the dimple over on the cylinder which is something that can be done by hand quite easily. But I really need this to work with a script.
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
06-07-2008 04:42
SetPrimTypeChained([9,1],[PRIM_TYPE_SPHERE, PRIM_TYPE_CYLINDER],PRIM_HOLE_DEFAULT, <0.0, 1.0, 0>,0.0,<0, 0, 0>,<1.0, 1.0, 0>,<0.0, 0.0, 0.0>,<0.0, 0.05, 0>,<0.0, 0.0, 0>,1,0,0);
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
|
06-07-2008 05:53
yep that is exactly what what I did. Does not seem to work any more. those are the exact parameters used and need to use.
I'm guessing something must have changed in one of the past sever updates. I am have a lot of other little problems with small prims movement. I know rotations have always been an issues but am now seeing the problem with positions too. Maybe this is related
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
06-07-2008 06:32
Hmmm that should have worked, looks like LL has been making breaking changes without telling anyone! *wanders off to Jira to report* EDIT: https://jira.secondlife.com/browse/SVC-2502
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
|
06-07-2008 06:51
|
|
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
|
06-07-2008 07:59
Voted 4 well thank you for your help. Now I will have to add another prim and in crease the rotation calculation by 1 over 43 scripts. woohoo more lag!
Just more of a delay for another U-poser release.
|