Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 18th, 2024, 4:21 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Triggering Sequential Actions
PostPosted: March 4th, 2007, 6:39 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

I am working on a pub that requires changing a vector's transparency (or color). With a limited number of triggers and not wanting to use key modifiers (shift, etc.) nor multi-frames with multiple vectors inside, I am trying to get a right-click trigger to, for example, first set a vector's transparency (initially set to 0) to 50 then the next right-click set to 100, then the next right-click back to 0. If this could be scripted, the user could use the right-click to cycle through a number of levels of transparency, thereby in effect changing the color from darker to lighter, etc.

Is there any way to do this without extra modifers for the right-click like shift key or setting up the various transparencies as separate vectors in a multi-frame?

Any ideas would be appreciated.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: March 5th, 2007, 1:04 am 
Stephen

I'm not sure that this is exactly what you want, but it seems to work as I interpret your requirements.

It works by changing the value of a variable "fade_count" by right-clicking on the vector (or anywhere else). Each right-click adds 1 to fade_count.

Using "if" statements, you can then change the transparency to whatever you want by using the Fade Action found in the Animation group of actions.

Points to note:
1. "Duration" refers to the delay before the fade changes. If you want an immediate change, set this to 0.
2. In the "Type Panel", I found that setting this to "Fade to" worked better for what I wanted, but you might like to experiment.
3. I left other settings at their defaults.

This technique is flexible enough to meet several requirements, so by using various combinations of setting fade_count, you should be able to get the results you want.

HTH


Last edited by Sentosa on March 5th, 2007, 1:23 am, edited 1 time in total.

Top
   
 
 Post subject:
PostPosted: March 5th, 2007, 1:17 am 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Ray

Thanks for your reply and suggestions. I'll give it a try.

Kind Regards,

_________________
Stephen


For this message Stephen has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group