TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software’s can be used with TurboCAD.


Want to blink visibility of object
Read 622 times
* October 17, 2017, 06:04:17 PM
Want to blink the visibility of an object eg: turn it on for say 2 seconds then off then repeat. What is the correct command here?

I did try the layerswitch like this:

5 10 LayerSwitch "CameraArcs" 1
11 16 LayerSwitch "CameraArcs" 0
17 22 LayerSwitch "CameraArcs" 1

But saw no change.
Thanks

Daz


Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best


* October 17, 2017, 06:43:47 PM
#1
Looks like Ive not set it up properly as I had the same problem Ralf Kras did with LayerSwitch doesn't work anymore post. Testing now.

Daz

Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best


* October 17, 2017, 06:53:17 PM
#2
Assuming "CameraArcs" is the name of a valid layer it should work (spelling correct ?), But with layer switching one just needs to use a single number for 'from' - 'to', example
5 5 Layerswitch "CameraArcs" 1
11 11 Layerswitch "CameraArcs" 0
17 17 Layerswitch "CameraArcs" 1

I personally would avoid applying the code to an object which is also on that layer, what I do is attach layer switching code to an immoveable object on its own layer, if I haven't got anything static then sometimes I will draw a box somewhere out of the scene, then make it an actor and assign all layer switching to it, for me this avoids confusion and makes finding the relevant switching commands easy. 

Logged


* October 18, 2017, 01:30:31 AM
#3
Andy thanks got it sorted now, my mistake was assigning to an actor like you said, assigning to a static object was the fix.

Thanks

Daz

Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best