Article View: adobe.atmosphere
Article #18Script does not work when I import a 3Ds Max model ???
From: sanane_banane
Date: Wed, 01 Sep 2004 00:58
Date: Wed, 01 Sep 2004 00:58
29 lines
1926 bytes
1926 bytes
Hi,
I modeled a box in atmosphere and imported a script (which makes the box clickable and opens a web page in another window) made with myATMOScript 2.0 it worked. There is no problem.
But I modeled a garden in 3Ds Max and imported it into atmosphere. Then I modeled a box (again) in atmsophere but the same script did not work.
Is there any way to make it work? Here is the script that I used in both models:
// =========================================================
// Script created with myATMOScript 2.0
// Copyright 2002 by Antonio Lage
// This script can be freelly distributed as long as this
// copyright message is not removed
// Check for updates at <http://www.flysurfing.com.br/atmos>
// =========================================================
//=============================
// URL Objects Module
//=============================
stageModel.getSolidObject(0).rootPrimitive.find('.../box1').onClick=function(what, mods){
if(typeof(sendJS)=='function')
{
sendJS('window.open (\'http://www.google.com\',\'xxx\',\'menubar=yes,toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=640,height=480\');');
}
else
{
chat.print ('Sorry, this function does not work in the stand alone browser.');
} }
Osman
Technical Details
Message-ID:
<3bb5b841.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Thread: fa820,7ce8b90336f19336,start X-Google-Attributes: gidfa820,public X-Google-Language: ENGLISH,ASCII-7-bit From: sanane_banane@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.atmosphere Subject: Script does not work when I import a 3Ds Max model ??? Message-ID: <3bb5b841.-1@webx.la2eafNXanI> Date: Tue, 31 Aug 2004 17:58:19 -0700 Lines: 37 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit