Article View: adobe.atmosphere
Article #129Re: trigger function of one script from another
From: Daniel_E._Green
Date: Sat, 21 Aug 2004 14:00
Date: Sat, 21 Aug 2004 14:00
13 lines
1197 bytes
1197 bytes
thanks to all for their help. i pared down the relevant code to a complete little script that makes a linkable 'action' appear in the scene hierarchy window to allow linking from one script to another:
-dan
//BEGIN_AUTHORING_PROPERTIES
//Arguments: defineCustomPropertyValue(type, name, value, referenced, modified)
//script_trigeree()
this.defineCustomPropertyValue("action", "script_trigeree", "script_trigeree", true, false);
//END_AUTHORING_PROPERTIES
// script_trigeree
this.script_trigeree = function()
{
chat.print('triggered from other script');
}
Technical Details
Message-ID:
<3bb5902f.5@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb5902f.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: fa820,770ce32bf05f2f36 X-Google-Attributes: gidfa820,public X-Google-Language: ENGLISH,ASCII-7-bit From: Daniel_E._Green@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.atmosphere Subject: Re: trigger function of one script from another Message-ID: <3bb5902f.5@webx.la2eafNXanI> Date: Sat, 21 Aug 2004 07:00:22 -0700 References: <3bb5902f.-1@webx.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit