|
| Author |
Topic  |
|
|
dominikldd
Infrequent Poster
Austria
20 Posts |
Posted - 09/19/2011 : 08:43:04
|
Hi!
first of all I want to thank those guys who helped me in my questions! Most of these replies were very helpful.
I have two questions:
is it possible to start an animation automaticly when the 3D files are read in the browser?
And what do I have to do if I want to play the animation backwards when I click the Animation button again?
Thank you for your answers Dominik |
|
|
jesmith
A Regular
 
USA
211 Posts |
Posted - 09/19/2011 : 09:25:42
|
1. Yes. You need to put a Trigger on the HTML page to start the animation. Something like:
Trigger.RunFirst.test={Scene.3d.loaded&Data.Model.imagePercentLoaded>99}; Trigger.RunFirst.exec={Scene.3d.playStartSlow('uxxxxx-nnnnn")};
You can find the script ID by reading the HTML that Live 3D produces.
2. In Live 3D, create a new script, select the script that you want to play backward, and click the "Reverse" checkbox. That will create a new script, just like the old one, but in the reverse order.
-Joshua |
 |
|
|
dominikldd
Infrequent Poster
Austria
20 Posts |
Posted - 09/20/2011 : 03:25:24
|
hm... i put my .html Code in here if it helps. because I don't know the function of the variables.
<center>
<applet code=com.kaon.meson.MesonApplet archive='mesonApplet.jar,rasterGluon.jar,sceneGluon.jar' width=750 height=450 alt='Please Enable Java' codebase='.' MAYSCRIPT><param name='java_arguments' value='-Xmx128M'><param name='separate_jvm' value='true'><param name='brand' value='strata'><param name='meson' value=' /* Copyright 2004-2006, Kaon Interactive Inc. */ /* Note: to include an apostrophe in this section, use \u0027 */ Applet.Primary.fill="FFFFFF"; /* Background color goes here */ Meson.setCurrentDataSource(Meson.documentBase=Meson.codeBase); Meson.gluon("com.kaon.meson.raster.RasterGluon"); Meson.gluon("com.kaon.meson.scene.SceneGluon"); Image.Loading.anchor=_C; Image.Loading.x={Display.Primary.width/2}; Image.Loading.y={Display.Primary.height/2}; Image.Loading.text="Initializing..."; makeControl={ #u=Meson.unique(); "AppControl."~#u~.actionType="anim"; "AppControl."~#u~.script=#script; "AppControl."~#u~.subGroup=#subGroup; "I18N.Class."~#u="AppGraphic."~#u; "AppGraphic."~#u~.text=#text; "AppGraphic."~#u~.tipText=#tipText; }; makeHotSpot={ #u=Meson.unique(); "AppHotSpot."~#u~.location=#location; "AppHotSpot."~#u~.script=#script; "I18N.Class."~#u="AppGraphic."~#u; "AppGraphic."~#u~.text=#text; }; scriptButtonsSpace=100; Data.Program.model="test.jar"; Data.Program.url="strata.jar"; customizeUI={ Shadow.Shadow_3d.alpha=0.75; /* Set to 0.0 for no shadow */ makeControl(^script="scenescript",^subGroup="Animate",^text="Animate",^tipText="Scene"); makeControl(^script="script0",^subGroup="",^text="Klappe1-2",^tipText=""); makeControl(^script="script1",^subGroup="",^text="Klappe2",^tipText=""); uiDone(); }; '>Java is currently not available on your browser. Please enable Java (www.java.com) to view the model. </applet><br><a href="http://www.strata.com" style="font-family:verdana;font-size:9px;color:#89a;text-decoration:none" target="_blank">Made with Strata Live 3D CX</a><br>
</center> </body></html>
Thank you very very much!!
|
 |
|
|
jesmith
A Regular
 
USA
211 Posts |
Posted - 09/20/2011 : 06:59:47
|
Trigger.RunFirst.test={Scene.3d.loaded&Data.Model.imagePercentLoaded>99}; Trigger.RunFirst.exec={Scene.3d.playStartSlow('scenescript")};
Put it right before uiDone()
-Joshua |
 |
|
|
dominikldd
Infrequent Poster
Austria
20 Posts |
Posted - 10/18/2011 : 10:13:45
|
hej!
is it possible to disable the animation buttons at the left side?
greetz! |
 |
|
|
jesmith
A Regular
 
USA
211 Posts |
Posted - 10/18/2011 : 10:19:41
|
In the customizeUI, you can simply hide that stuff with:
Image.ScriptButtons.layer=-1;
-Joshua |
 |
|
| |
Topic  |
|
|
|
| StrataCafe Forums |
© 2009 StrataCafe |
 |
|