PDA

View Full Version : Problem in prerenderpyramid 0.9


niwatori3d
05-04-2003, 04:54 PM
I just install mel script called prerenderpyramid v0.9 in my Maya 4.5 ..and when I open this mel >>>maya always generate the error and warning like below

// Warning: SphereShape (Nurbs Surface Node): Tweaks can be undesirable on shapes with history. //
// Error: Cannot convert data of type int to type float[]. //


I don't know whether other who use this mel will face the big problem like me or not ..

please help me get rid of this problem
thanks.:annoyed: :hmm:

wgreenlee1
05-04-2003, 06:15 PM
Whats this script suppoed to do?
What version of Maya are you running?
It might be that the script is not compiled for the version you have....

dmcgrath
05-04-2003, 06:38 PM
All the warning and errors are telling you is this.

You have a sphere in there that is most likely skinned to bones, or under some kind of influence. And that to tweak and of the CV positions, might cause you problems when Maya goes to deform it.

The script is trying to re-declare a variable that is set up in integer form (whole numbers) into a floating number array. (like [1.0567, 8.43, .0234, etc...] I would have to see the script to understand why it's trying to do this in your scene.



Where did you get the script from?

niwatori3d
05-04-2003, 07:30 PM
You can find this script in Highend3D in Mel scripts section (Rendering and shading) the name of script is " prerenderpyramid v0.9" and this script run for maya 4.5 only. click this


http://www.highend3d.com/files/dl.3d?group=melscripts&file_loc=prerenderpyramid-v0.9-.zip&file_id=2178

or this http://www.troydm.h10.ru/


I will explain in detail, My maya version is 4.5 , I just create easy scene for testing. In my scenes , it has polygon plane scale x y z =30 and nurb sphere . That's all.

thanks for your help ... if you have any suggestion , please let me know ....this problem stuck in my head now .... :thumbsdow :shrug:

dmcgrath
05-06-2003, 02:56 AM
Okay, I have only looked at the script in a text editor, and have not tested it myeslf. So I'll try and help you troubleshoot this the hard way.


In the UI that pops up, are there places for you to input some numbers? Like the # of lights in the scene or their distances or anything.
The reason I ask is because there are two variables that are declared as int(s). These are $lights and $sunshd.
When something is declared as an int (like $lights) if you type in something like 3.98, it will just drop anything after the '.' and the number will become 3
But according to your Error message, there is something inside one of his scripts that is in conflict with one of your scripts on your machine.


The remedy to this situation might be to first get rid of all your other scripts in your script folder where this one is installed. But only when you want to use this one. There is a possibility that $lights is being used by another script running in the background (most likely from another GI lighting script) and the two are interfering.

Try this first, because I can't see anything wrong with his code offhand. If I come up with anything else I will let you know.

CGTalk Moderation
01-15-2006, 01:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.