{"id":3237,"date":"2021-02-21T22:36:12","date_gmt":"2021-02-22T05:36:12","guid":{"rendered":"http:\/\/artistedancediva.co.uk\/wp\/?p=3237"},"modified":"2021-03-10T14:41:11","modified_gmt":"2021-03-10T21:41:11","slug":"palette-reference-03-rezobj-die","status":"publish","type":"post","link":"https:\/\/artistedancediva.co.uk\/wp\/?p=3237","title":{"rendered":"Palette Reference &#8211; 07 &#8211; RezObj\/Die"},"content":{"rendered":"<p>You can <strong>rez<\/strong> an object that is inside of a palette by specifying its full name, case-sensitive, using the <strong>RezObj<\/strong> command.\u00a0 It can be thought of as a <strong>poor-mans thrower.\u00a0\u00a0<\/strong><\/p>\n<p><strong>It should be copyable.<br \/>\n<\/strong><br \/>\n<strong>You need build rights.<br \/>\n<\/strong><br \/>\n<strong>To propel it, it needs to be <span style=\"color: #ff0000;\">PHYSICAL<\/span>.\u00a0 You can also make it <span style=\"color: #ff00ff;\">Temporary<\/span> if that works for you<br \/>\n<\/strong><br \/>\n<strong>If propelling, then adjust its GRAVITY downward to Iess than 1.0)\u00a0 to make it go further. (think moon).<br \/>\n<\/strong><br \/>\n<strong>You must rez the object within 10 meters of the Palette.<\/strong><\/p>\n<p><strong>02_A<span style=\"color: #ff0000;\">%<\/span><span style=\"color: #000000;\">RezObj<\/span><span style=\"color: #ff0000;\">%<\/span><span style=\"color: #ff00ff;\">NameOfObjectToRez<\/span><span style=\"color: #ff0000;\">%<\/span><\/strong><span style=\"color: #008000;\"><strong>&lt;1##1##1&gt;<span style=\"color: #ff0000;\">%<\/span><span style=\"color: #0000ff;\">&lt;0##0##0##1&gt;<span style=\"color: #ff0000;\">%<\/span><\/span><span style=\"color: #ff00ff;\">&lt;1##0##0&gt;<\/span><span style=\"color: #ff0000;\">%1<\/span><\/strong><\/span><\/p>\n<p><strong><span style=\"color: #008000;\">&lt;1##1##1&gt;<\/span> = rez at position &lt;x,y,z&gt;\u00a0 &#8212; must be within 10 meters of center of root prim as the crow flies<\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\">&lt;0##0##0##1&gt;<\/span>= rez\u00a0 with rotation &lt;x,y,z,s&gt;\u00a0 &#8212; I have always used <span style=\"color: #0000ff;\">&lt;0##0##0##1&gt;<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff00ff;\">&lt;1##0##0&gt; = <span style=\"color: #ff0000;\">velocity direction<\/span> &lt;x,y,x&gt;<span style=\"color: #ff0000;\"> &#8212; this can be directly translated into <span style=\"color: #800080;\">ApplyImpulse<\/span> on Thrower\u00a0<\/span><\/span><\/strong><\/p>\n<p><span style=\"color: #008000;\"><strong><span style=\"color: #ff0000;\">%1 = unused but could be implemented using a custom script in the thrown object to react post-throw.<\/span><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #ff0000;\">NEW! March 2021 &#8211; On<\/span> the <span style=\"color: #0000ff;\">*utility nc<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">SetNonPhysOnCollide<\/span><\/strong>,<strong><span style=\"color: #ff00ff;\">on <span style=\"color: #ff0000;\">&#8212; This will cause rezzed object to go non-physical upon collision.\u00a0 You need at least Palette v33.<br \/>\nThis is essentially a poor-mans quick-and-dirty Thrower.\u00a0 <span style=\"color: #ff00ff;\">(I used this to construct an arrow-to-target scenario. )<\/span> As in, no final matching dispositions. No built-in mechanisms for throw\/catch.<\/span><\/span><\/strong><\/p>\n<p>*******************<br \/>\nThe <span style=\"color: #ff0000;\"><strong>Die<\/strong> <\/span>command will delete a Palette.\u00a0 The Palette <span style=\"color: #ff0000;\"><strong>MUST<\/strong> <\/span>be scripted as a normal palette&#8230;a sometimes overlooked requirement..<br \/>\nNo abilities required,<\/p>\n<p><strong>02_A<span style=\"color: #ff0000;\">%<\/span><span style=\"color: #000000;\">Die<\/span><span style=\"color: #ff0000;\">%\u00a0 &#8212; this will delete a Palette named 02_A.\u00a0 It must be rezzed and in world.\u00a0 Be careful that you do not delete the only copy of a no-copy object.<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can rez an object that is inside of a palette by specifying its full name, case-sensitive, using the RezObj command.\u00a0 It can be thought of as a poor-mans thrower.\u00a0\u00a0 It should be copyable. You need build rights. To propel it, it needs to be PHYSICAL.\u00a0 You can also make it Temporary if that works &hellip; <a href=\"https:\/\/artistedancediva.co.uk\/wp\/?p=3237\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Palette Reference &#8211; 07 &#8211; RezObj\/Die<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,4,1],"tags":[],"_links":{"self":[{"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3237"}],"collection":[{"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3237"}],"version-history":[{"count":14,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3237\/revisions"}],"predecessor-version":[{"id":3559,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3237\/revisions\/3559"}],"wp:attachment":[{"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artistedancediva.co.uk\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}