Notifications
Clear all

[Closed] How can i do this ? and this ?

 JHN

Ok, thanks for answering my question.

new version (beta) + new website !!!.. http://313designstudio.com/rappatools/

 eek

Just in time for the christmas spirit too! :rolleyes:

Rappy,

The reason you don’t encrypt your scripts is predominantly to support the community – you’ve been asking for all this help on this thread, and people are going out of the way to help you – With nothing in return. As the saying goes: “biting the hand that feeds you”

2 Replies
(@rappybmx)
Joined: 11 months ago

Posts: 0

eek,

Well kinda true, but what about the people that ask help here to make scripts that eventually they will sell it ? ain’t that worst ?

here’s RappaTools v313.14 source code…
http://313designstudio.com/rappatools/RappaTools-313.14-source.rar

Happy ?

Best,
Remus ‘RappyBMX’

 eek
(@eek)
Joined: 11 months ago

Posts: 0

Hmm… Im not sure. Most of the time they put only very small snippets and part of there frameworks is c++ or c# like a plugin for example. Also they tend to offer some sort remuneration to the people that helped them out firstly – and second if they do sell there script most of the time theres no encryption whatsoever.

Im not saying its good or bad – but its just the stance you come from. If your asking for a lot of help on a thread, such as this one then out of gratitude you should allow other technically minded people to look at your work and improve on it. You yourself said some of it was’nt that good. Most of the scripts ive seen arent encrypted in any form.

In the end its horses for courses. P.s most licenced code bases offer an eula on the use of the code base provided. If is allowed to be modified, altered etc etc – look at python for example.

hey man, thanx for releasing the source code for this, its a great help

is there a callback for materials ?.. when a material name is changed ???


by the way new version of rappatools v313.151 beta
http://313designstudio.com/rappatools/

1 Reply
(@zeboxx2)
Joined: 11 months ago

Posts: 0

no callback, but there is a changeHandler.

when name meditmaterials[1] changes id:#test do ( print meditmaterials[1].name )

After running that, play with changing the name of the material/map in medit slot 1; it will print the new name with each character change.

You do have to set this up for any material in advance… if you need to do this for newly created materials, then you can use the #mtlRefAdded Callback to get a reference to that material so you can set a change handler up for it.

It is more efficient to feed a change handler a collection (array) of elements, so destroying the one you have and setting it up with any new material(s) added is better than setting up a bunch of separate ones.

I wish he had never un-encrypted his script. I looked at the source and found this:

WARNING: If you have inexperienced coders with you, they should leave the room. Mentor discretion is advised.

global is

Oh, the humanity!

1 Reply
(@rappybmx)
Joined: 11 months ago

Posts: 0

:shrug:


hey ZeBoxx2 well what i wanted to do is to automatically update the names of the materials. like i did for the cam & light dropdown menus.


  if ( i == 3 ) then --reload drop down menu
 	(
 		sceneMat = for i = 1 to meditmaterials.count collect i
 		sceneMatNames = meditthing + (for o in meditmaterials collect o.name)
 			
 		RappaTools.theZone.subModeling.ddl_meditmat.items = sceneMatNames
 	)
  

the changeHandler is your best bet, then – short of setting up a timer that calls a function which loops over all the materials %)

here’s something that i can’t figure out !


			on mi_quadmenu picked do
				(
					if menuMan.registerMenuContext 0x313fff15 then
					(
						menuMan.createQuadMenu "RappaTools" "RappaTools" "extra" "selection" "modeling"
						local quadmenu = menuMan.findQuadMenu "RappaTools"
						menuMan.setViewportRightClickMenu #shiftAndControlPressed quadmenu
						
						-- Get the default viewport right-click quad menu
						--local quadMenu = menuMan.getViewportRightClickMenu #shiftAndControlPressed
						
						menuMan.setShowAllQuads quadMenu true
						
						-- Get the lower-left menu from the quad
						local menu0 = quadMenu.getMenu 1
						--menu0.setTitle "RappaTools"
						local menu1 = quadMenu.getMenu 2
						--menu1.setTitle "extra"
						local menu2 = quadMenu.getMenu 3
						--menu2.setTitle "selection"
						local menu3 = quadMenu.getMenu 4
						--menu3.setTitle "modeling"
						
						-- create a menu item that calls the sample macroScript
						local item_sep = menuMan.createSeparatorItem()
						
						-- RAPPATOOLS
						local item_0_1 = menuMan.createActionItem "RappaTools" "313DesignStudio"
						.
 						.
 						.
						-- EXTRA
						local item_1_1 = menuMan.createActionItem "MePoly" "RappaTools"
						.
 						.
 						.
						-- SELECTION
						local item_2_1 = menuMan.createActionItem "Ring" "RappaTools"
						local item_2_2 = menuMan.createActionItem "loop" "RappaTools"
						.
 						.
 						.
						-- MODELING
						local item_3_1 = menuMan.createActionItem "RConn" "RappaTools"
						.
 						.
 						.
						 
						-- Add the item to the menu
						-- RAPPATOOLS
						menu0.addItem item_0_1 -1
						.
						.
						.
						-- EXTRA
						menu1.addItem item_1_1 -1
						.
 						.
 						.
						-- SELECTION
						menu2.addItem item_2_1 -1
						.
 						.
 						.
						-- MODELING
						menu3.addItem item_3_1 -1
						.
 						.
 						.
					)
					else
					(
						quadmenu = menuMan.findQuadMenu "RappaTools"
						if quadmenu != undefined do 
						(
							menuMan.setViewportRightClickMenu #shiftAndControlPressed quadmenu
							menuMan.setShowAllQuads quadMenu true
						)
					)
				)

here’s the code when u remove rappatools


				if menuMan.registerMenuContext 0x31300015 then
				(
					menuMan.createQuadMenu "empty" "" "" "" ""
					quadmenu = menuMan.findQuadMenu "empty"
						if (quadmenu != undefined) then 
						(
							quadmenu.trackmenu true
							menuman.setViewportRightClickMenu #shiftAndControlPressed quadmenu
						)
				)
				else
				(
					quadmenu = menuMan.findQuadMenu "empty"
						if (quadmenu != undefined) then 
						(
							quadmenu.trackmenu true
							menuman.setViewportRightClickMenu #shiftAndControlPressed quadmenu
						)
				)

it works, temporarily , any suggestions to make it work better or the way it should ? first of all the remove script needs to be changed but i cant find another way to remove rappatools quad… and for the people that already have customized the #shiftAndControlPressed quad ?

anyone ?

at least how can i remove the rappatools quad menu right ? not by creating and empty one…

i don’t know about you but i like to not have to keep the mZip file and have an uninstall.exe
i use InnoSetup to create a setup for my scripts… verry quick and simple and you can uninstall them howEver you want and without the sourcefile

for the quats… no idea :shrug:

Page 4 / 6