# Rockgen Not Working

**URL:** https://forum.highend3d.com/t/rockgen-not-working/42408
**Category:** Maya
**Tags:** new-user
**Created:** [February 3, 2008, 12:34am UTC](https://forum.highend3d.com/t/rockgen-not-working/42408 "2008-02-03T00:34:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hilari](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/h/3ab097/32.png) [@hilari](https://forum.highend3d.com/u/hilari)
#### Post date: [February 3, 2008, 12:34am UTC](https://forum.highend3d.com/t/rockgen-not-working/42408/1 "2008-02-03T00:34:08Z")

</div>

Hi , first of all ,quite New in Maya .

I am loading rockGen to the script window , select all and "middle-mouse-button-drag" to the shelf . The icon appears with rockGen text next to it.  
When clicking on it , nothing happens.

Nothing happens either when I ctrl+Enter it to evaluate .  
No warning message either for that matter.  
What am I doing wrong or just not doing ?

Thank you in advance for any help on this issue . ![]()

Hilari.

---

<div class="post-metadata">

### Author: ![naughty](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/35a633/32.png) [@naughty](https://forum.highend3d.com/u/naughty)
#### Post date: [February 7, 2008, 4:58pm UTC](https://forum.highend3d.com/t/rockgen-not-working/42408/2 "2008-02-07T16:58:55Z")

</div>

FAO _all_ mel users:

NEVER load any scripts into the script editor and certainly NEVER load a script into the script editor and MMB-drag it on to the shelf!

all you need to do to make a shelf button for a script is put the script itself somewhere in your script path (e.g. myDocs\maya\scripts) then put the SCRIPT NAME on a shelf button. you shouldn't ever have to load or open any scripts into maya.

so in your case Hilari you should just have a shelf button with the command:

rockGen;

on it and nothing else.

This approach is not guarenteed to work on every script, but if it DOESN'T, the script is a piece of garbage and should probably be avoided anyway. ![]()

:nathaN

---

<div class="post-metadata">

### Author: ![hilari](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/h/3ab097/32.png) [@hilari](https://forum.highend3d.com/u/hilari)
#### Post date: [February 7, 2008, 8:16pm UTC](https://forum.highend3d.com/t/rockgen-not-working/42408/3 "2008-02-07T20:16:18Z")

</div>

Hi Naughty Nathan .

And thank you for taking your time to reply at my s.o.s.

My rockGen is placed in my C:\programfiles\Autodesk\maya2008\scripts .

In order to make it work, and following the example from the Maya tutorial on how to load and change a script , I "command \>\> new tab" ( I press the Mel button ) and then "File \>\> open script " in order to "save to shelf" .  
Should it not be the procedure ?

I downloaded the Bonus Tools from Autodesk and they lie on the same path as rockGen ( and awire, for that matter: another script playing dead too,so far).

I downloaded the x-ray and this script does work .   
Some of my guessings is that it has to do with scripts with windows, as x-ray is just a toggling script.

The script from the Maya tutorial loads and works fine following the instructions from the tutorial but not rockGen and Awire.

Can you see what I am doing wrong ?

I'd really appreciate any lighshedding on this matter ![]()

Thanx again

Hilari

---

<div class="post-metadata">

### Author: ![naughty](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/35a633/32.png) [@naughty](https://forum.highend3d.com/u/naughty)
#### Post date: [February 8, 2008, 4:12pm UTC](https://forum.highend3d.com/t/rockgen-not-working/42408/4 "2008-02-08T16:12:42Z")

</div>

I'm not running Maya 2008 right now so I can't be 100% but I'm fairly sure:

C:\programfiles\Autodesk\maya2008\scripts

is NOT in your scripts path. Besides, (and this is generally good advice for any software) you really shouldn't modify the contents of a programs installed location, including adding files to it. You are given a maya folder in your "My Documents" where you can put all your own custom stuff and it's here you should really be putting anything you create or download. (this is all Windows based btw, I have no idea how other OS's handle this but I imagine it's similar)

There are already several previous threads discussing MEL input, script editor, shelves, sourcing files etc... so I'm not going to repeat all that stuff again. Take a look at these posts for example:

[http://www.highend3d.com/boards/index.php?showtopic=153938](https://www.highend3d.com/boards/index.php?showtopic=153938)  
[http://www.highend3d.com/boards/index.php?showtopic=237655](https://www.highend3d.com/boards/index.php?showtopic=237655)  
[http://www.highend3d.com/boards/index.php?showtopic=236303](https://www.highend3d.com/boards/index.php?showtopic=236303)  
[http://www.highend3d.com/boards/index.php?showtopic=154046](https://www.highend3d.com/boards/index.php?showtopic=154046)

hope this helps clear it all up a bit!

:nathaN
