Page 1 of 1

Custom Revolution tools

Posted: Sun Aug 31, 2008 1:36 pm
by hamlynart
Hi again,

Back last millenium I used to use a great piece of software called mTropolis which was very like Revolution in many ways. One great function was being able to create tools to add to the standard toolset and have them work like plugins. Is there a way to do this in Revolution? For example I'd like to do something like this:

on mouseUp
move the selectedObject of stack "myOtherStack" to random 100,100
end mouseUp

Any help would be much appreciated.

Best

Jim

Posted: Sun Aug 31, 2008 1:49 pm
by gyroscope
Hi Jim

There are many plugins for Rev, all helping in many ways. But I personally don't quite understand:
create tools to add to the standard toolset and have them work like plugins
Perhaps it's my age...:wink:

You can get your prob sorted with straightforward code, without the need for any sort of plugin, one way might be:

Code: Select all

on mouseUp
   put random(100) into tUpDown
   put random(100) into tLeftRight
   set the location of me -- or graphic "SuchandSuch" -- to tUpDown,tLeftRight
end mouseUp
Hope that's been of some help to you.... :)

Posted: Sun Aug 31, 2008 2:25 pm
by BvG
The "problem" is that Rev is made with Rev itself. As you could quite simply add a button to the iconbar or toolbar yourself, there's not much incentive for RunRev to add a special way to do additions.

There is a plugin menu item under the development menu, but that's mostly a library loading place.

Posted: Sun Aug 31, 2008 11:01 pm
by hamlynart
My code was just an example. I want to be able to make a custom tool pallet which can be used for all my projects. It turns out that I've actually figured out how to do it - I just needed to drop my project into the plugins folder and restart Revolution.

Thanks

Jim

Posted: Mon Sep 01, 2008 7:45 pm
by FourthWorld
Tools in Rev are a snap: just make whatever you like and store it in your plugins folder.

In Rev, see Development->Plugins