简体   繁体   English

如何获得幻灯片的总数?

[英]How does one get the total number of slides?

In Articulate's Storyline product, how does one retrieve the total number of slides (or pages) in a storyfile or project?在 Articulate 的 Storyline 产品中,如何检索故事文件或项目中的幻灯片(或页面)总数?

There's not much documentation so it's kind of hard to figure out how to query common environment values like this.没有太多文档,因此很难弄清楚如何查询这样的常见环境值。 If we can get the total number of slides then we don't have to manually set a value for it.如果我们可以获得幻灯片的总数,那么我们就不必手动为其设置值。

One must manually set and update a variable to store the number of slides.必须手动设置和更新一个变量来存储幻灯片的数量。

The most lengthy conversation on the matter seems to be found here at the Articulate forums .关于这个问题最冗长的对话似乎可以在 Articulate 论坛上找到

In that thread the users and staff describe the need to manually define such a variable.在该线程中,用户和员工描述了手动定义此类变量的必要性。

I asked the question on the official forum more directly here , and so far have not received a response.我在这里更直接地在官方论坛上问了这个问题,到目前为止还没有收到回复。

Another poster at that forum mentioned using PHP to solve this problem, but unfortunately we can't add the requirement of PHP to the final product.该论坛的另一位发帖人提到了使用PHP来解决此问题,但遗憾的是我们无法将PHP的要求添加到最终产品中。 I'm sure some server side language tricks might be used to solve this issue, but that also adds the dependency of a particular server-side language.我确信可能会使用一些服务器端语言技巧来解决这个问题,但这也增加了特定服务器端语言的依赖性。

The Answer Mark gave is correct.马克给出的答案是正确的。 So if you want to track the number of question slides in a quiz you would either hard code the value in a variable such as totalQuestions , or increment it as you go through each slide using adjust variable trigger.因此,如果您想在测验中跟踪问题幻灯片的数量,您可以将值硬编码到变量中,例如totalQuestions ,或者在使用调整变量触发器浏览每张幻灯片时增加它。 To call that value and display it on screen you would just add it to a text field and surround it with "%".要调用该值并将其显示在屏幕上,您只需将其添加到文本字段并用“%”括起来即可。

EG.例如。 "You have answered %Results.ScorePoints% out of %totalQuestions% questions correctly." “您已正确回答 %Results.ScorePoints% 题,共 %totalQuestions% 题。”

I find it rather pointless to hard code it since it's just as easy to put the value in the text field at the end.我发现硬编码它毫无意义,因为将值放在最后的文本字段中同样容易。 Using the increment method seems more logical because then you can add more question slides without having to adjust the variable or results screen each time.使用增量方法似乎更合乎逻辑,因为这样您就可以添加更多问题幻灯片,而不必每次都调整变量或结果屏幕。

I usually load frame.xml , browse for all slidelink tags and sort all slides by their Id.我通常加载frame.xml ,浏览所有幻灯片slidelink标签并按 ID 对所有幻灯片进行排序。

Usually you get something like slideid=_player.5xoxGTW6QCh.6bmeRt3tCqP , where 5xoxGTW6QCh is the scene id and 6bmeRt3tCqP is the slide id.通常你会得到类似slideid=_player.5xoxGTW6QCh.6bmeRt3tCqP东西,其中5xoxGTW6QCh是场景 id, 6bmeRt3tCqP是幻灯片 id。 displaytext also gives you the slide title . displaytext还为您提供slide title

If you browse for slidetranscript and match the Id for each transcript you also get the slide notes.如果您浏览slidetranscript并匹配每个抄本的 ID,您还将获得幻灯片注释。

Articulate 360 now has an internal (Built-in) variable for this and other counts. Articulate 360​​ 现在有一个用于此计数和其他计数的内部(内置)变量。 See Project.TotalSlides and Menu.TotalSlides请参阅 Project.TotalSlides 和 Menu.TotalSlides

See https://community.articulate.com/series/articulate-storyline-360/articles/storyline-360-add-slide-numbers请参阅https://community.articulate.com/series/articulate-storyline-360/articles/storyline-360-add-slide-numbers

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM