ScriptSpot

Forum topic · General Scripting

A simple issue

By Dariusz · 2012-01-26

Description

Heya

Soo I'm dodling scripting from few weeks now. I do get somewhere with them but I have quite basic problems atm...

I have 2 so far - I partially solved 1 but I forgot so ha.. :/

Anyway here is 1st one

rollout Shortcuts "On/Off Shortcuts" width:162 height:300
(
button ONTS "ON" pos:[8,32] width:57 height:24
button OFFTS "Off" pos:[88,32] width:57 height:24 enabled:true

on ONTS press do
(

timeSlider.setVisible True
)
on OFFTS press do
(

timeSlider.setVisible False

)

)

myfloater = (newRolloutFloater "DM Tools" 195 552)
addRollout Shortcuts myfloater

Now what this does is create rollout and let me enable and disable timeslider. The on/off button dont work... any idea how do I get that to fix?

The second issue is that I want to start 1 script using another script. So I'll have 1 icon with all scripts I want and I just click on them and they pop up next to me... how can I call a script ?

Thanks, bye ! :)

Comments (1)

quick help

Anubis · 2012-01-26

on 1st question:
a little syntax error - the button event is pressed not

press

on 2nd question:
you need MacroScript (check the help for details)