News:

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

Main Menu

TC Macro Programming

Started by AussieBloke, December 10, 2023, 06:32:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AussieBloke

Background: so Ive created all the parts I want to animate for the ht build sequence. For anilab.

Now just designing the intro 1st, so I want to create a macro in tc that emulates a user asking questions on screen and receiving reply answers back on screen. Ive rarely ventured in macro stuff.

Im wanting the reply to take about 3 seconds or so.

Anyone got ideas and how this can work?


nikkipollard

#1
Quote from: Darryl W on December 10, 2023, 06:32:58 PMBackground: so Ive created all the parts I want to animate for the ht build sequence. For anilab.

Now just designing the intro 1st, so I want to create a macro in tc that emulates a user asking questions on screen and receiving reply answers back on screen. Ive rarely ventured in macro stuff.

Im wanting the reply to take about 3 seconds or so.

Anyone got ideas and how this can work?



What do you mean by on screen?
Something elaborate or a simple Input(to ask the question) and Message box - to reply?

https://ss64.com/vb/msgbox.html


Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Andy H

Me - slightly confused   ??? 

It sounds like you want fully automatic, no user input, i.e. the script itself, displays a message, and self cancels after 3 seconds to display the answer.   So I have to ask, could you please elaborate.

I also have to ask.  Why a macro >.  Or do you mean a script for AnimationLab.

Message boxes wait for a user input, it does not self close,  There are ways round this, but probably better wo wait and see if I have misunderstood.

AussieBloke

Just tossing ideas around here, to create user/viewer interest in the animation/video so Im thinking or hypothesising what if the intro video is staged like someone asking an AI ( like chatgtp, dalle-3 ) interface questions and then getting answer back.

Macro or script it doesnt matter, its just the concept Im thinking about.

Say for example:

Q. Hey AI, whats the most popular handtruck?
A. Pushed or powered handtruck.

Q. Powered?
A. In design now or on the market.

Q. In design now and can I see it being constructed?
A. Ok, generating now..

Now the construction video starts. Or something along that idea.  ;D



Andy H

There are a few options really..  Nikki may think up some more.

There is something called WshSshell which works in VB script.  Tthis will display a popup for a certain tine, then self close.  However using it as an Animationlab script, kinda worked but didn't self cancel.  So personally IO wouldn't bother with it.

SendKeys. (used with message box).  Unlike VB,  VB script needs to access Wscript.shell, where it can can be told what keys to simulate being pressed.  This in theory should work. But because a message box essentially stops AL code from running until a button is pressed,  The sendkeys may never run.  (I have not tested this).

Do what AnimationLab s good at.. (What I would do).  Design ones own little message and reply boxes.  That way one can design a message and have the reply appear below it whilst the message is still visible. Save them on different layers.  Then its very easily animated using the layerswitch command. And using the frame numbers, one has full control of display timing.

Design them in a paint/drawing program, and use ChangeActorImage command to display the relevant image.

Get really creative, and write some VB script, which will actually type out the message (like typing into a textbox),  and then the reply.  A lot more work, but could be fun.