PDA

View Full Version : Basic Skinning Question for Scripting newbie


Jim_C
11-01-2005, 09:01 AM
Hiddily Ho,

I have just started doing some basic skins and I was hoping someone could shine a little flashlight in the dark for me.

All I have done so far is move around elements on the same skin. easy stuff, just cut/copy/paste the buttons on the png's in photoshop and viola! No writing script needed for that.

I would like to start adding elements from one skin to another....

Questions....
-Is it still as simple as moving the button and its mask from one skin to the other? i.e. Copy the record button from the capture panel and paste it onto Deck control? (along with mask colors)
-If not where do I find the original code that sets up the record button on the capture panel so I can add it to the Initialization script for the deck control module? When I look at the capture panel Initialization file in the skin folder and I really see nothign that assigns buttons.
-Do I even have any idea what I am talking about?

Thanks anybody and everybody,

Jim

billmi
11-01-2005, 10:20 AM
I have exactly the same question.

Is there a master list of the commands available for each module somewhere?
I've had no luck using the jog/shuttle commands from VTEdit in Batch Capture.

kltv
11-01-2005, 12:07 PM
I've attached the ToasterScript documentation. That should answer some of your questions.

Most of the main functions of the modules are coded deeper than the ToasterScript initalization files. I don't think you can add a function of one module to the other. Each module has its own specific functions, so I don't think you can copy a capture panel function to the deck control module. Doesn't the deck control module have a record button anyway?

Kris

Jim_C
11-01-2005, 12:20 PM
Doesn't the deck control module have a record button anyway?



No. And that's just a quick example of the mods I am thinking of. Mostly grouping functions.

There is a way to transfer functions.
Here is an example where Blake took the Edit Properties Box off of VTEDIT and put in on the DDR.

http://vbulletin.newtek.com/showthread.php?t=15076

Thanks for the docs. I couldn't figure out where Blake got the code he refers to in his post. Hopefully this will help.

Jim

kltv
11-01-2005, 09:59 PM
There is a way to transfer functions.
Here is an example where Blake took the Edit Properties Box off of VTEDIT and put in on the DDR.


That may be a unique example. The DDR is really a trimmed down version of VT-Edit, so the function is still available for that module.

No. And that's just a quick example of the mods I am thinking of. Mostly grouping functions.


There is a function to start your deck control recording. You should be able to add the VCR_Record() function to a control to start your machine recording. Something like this should work if you edit the mask and layer images to add a button and add this to the initalization script...

CreateControl(0,0,255,"SkinControl_SubControl"):
{
MouseInside=false
Pressed=false

SetUpLayer() = {
if (Pressed)
{ if (MouseInside) SetLayer(3)
else SetLayer(1)
}
else
{ if (MouseInside) SetLayer(2)
else SetLayer(0)
}
}

AddCallback("MouseEnter", code(
MouseInside=true
SetUpLayer()
)
)
AddCallback("MouseExit", code(
MouseInside=false
SetUpLayer()
)
)
AddCallback("MouseLButtonClick", code(
Pressed=true
SetUpLayer()
VCR_Record()
)
)
}

Kris

Jim_C
11-01-2005, 10:08 PM
Wow, thanks Kris. Good stuff to look at and try to learn.

What I'm trying to do, and may not have expressed it clearly is put a record button on the deck control that starts the caprure to hard drive going. Not the deck itself.

But may not be possible based on your description.

Thanks again,

Jim

kltv
11-02-2005, 12:23 AM
What I'm trying to do, and may not have expressed it clearly is put a record button on the deck control that starts the caprure to hard drive going. Not the deck itself.


Ah... I get it now. You could try putting Record() instead of VCR_Record(). That is the record panel function. I'm not sure it will work, but you can't hurt anything trying.

Kris

Jim_C
11-02-2005, 07:41 AM
Yea, and the code you furnished me illuminated a nice trail on the learning curve. Thanks a bunch!!


Jim