Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

How export dice roll animation only ?

Hello, I look at all API script on github : <a href="https://github.com/Roll20/roll20-api-scripts/" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/</a>, but there is lot of things. ^^ I want use dice animation like here : <a href="https://www.youtube.com/watch?time_continue=7&v=aA" rel="nofollow">https://www.youtube.com/watch?time_continue=7&v=aA</a>... What modules are needed to do this, simply? thx.
1520250607
The Aaron
Pro
API Scripter
You just need to turn on Enable 3d dice , and turn off Automatically roll 3d dice &nbsp;on the settings tab in game. See:&nbsp; <a href="https://wiki.roll20.net/My_Settings#Enable_3D_Dic" rel="nofollow">https://wiki.roll20.net/My_Settings#Enable_3D_Dic</a>...
Sry I misspoke, I need just do "Dice.roll("1d6")" (it's an exemple) on a cleaned html page, and see the dice animation appear. I suppose the JS lib to generate dice can be used like stand alone lib?!
1520259338
The Aaron
Pro
API Scripter
OH.&nbsp; You're talking about having 3d dice, but not having them in the Roll20 Table Top?&nbsp; The 3d dice are a custom construct built by Riley (I believe using three.js).&nbsp; They aren't available outside the Roll20 Table Top.&nbsp; The Roll20 API is for scripts that execute in the Roll20 API Sandbox, which manipulate the state of a Roll20 game.&nbsp; They are not stand alone scripts that could be used on a third party site.
Ah ok... I thought the lib was free. I try to create a simulator of a boardgame, and I would add animation for dices, because it's beautifull in roll20 ! Sorry for the derangement, I will keep my text result for this time ^^
1520263312

Edited 1520263423
The Aaron
Pro
API Scripter
If you're only needing a few d6s, I think there's a three.js example on their site.&nbsp; However, that's off topic for Roll20.&nbsp; You might try looking for a webgl js forum on reddit or elsewhere, or look at some of the example code on three.js's site.&nbsp; (or maybe cannon.js ?)
1520264342
Ziechael
Forum Champion
Sheet Author
API Scripter
Dariel said: I try to create a simulator of a boardgame Is there a reason you couldn't create the boardgame within the VTT itself to utilise Roll20's 3D dice? That's what I've done before :)