
amitkhanna
- Joined
- Aug 24, '09
- Views
- 257
- Trust Level
- new user
Hi there, I think I found the problem. Robe iam using "error" and also tried "print" but the problem really is with "Echo all commands". If it is turned ON it echo's menu's opening and closing...but when i turn it OFF i get what i have in the script, whethere it be error or print command then. …
Hi there, I have this problem, not so big a problem but bugs me from time to time. I have a window where I have a few menus. I have attached commands to menuItems. Now the problem is, whenever a command is run by clicking menuItem I get this text output in the script editor and in the command fe…
Hi, You may try to connect to a custom attribute (eg: offset ) instead directly to other object's .tx, .ty, .tz. and then connect this "offset" to .tx, .ty and .tz using expression or however you want it to. This would feed this offset to translations or rotations, whatever u will be using and wil…
Hi, Thanks Joojaa. Ill try matrix multiplication...i guess it will take me sometime as i have never tried this before..so lets see where i reach with this. If you can guide a bit about this...how to start ot anything that will be great. Thanks a lot again, Amit
Hi Robe, isnt "-t" flag in command "xform -q -ws -t $object" stants for transformatins?? but inn getAttr -t stants for time so using getAttr i can get values at given time/frame. but then in getAttr i cant get values in World Space... So any suggestion? Still stuck, Thanks a lot, Amit
Hi there, Iam stuck again at the same thing... Joojaa told me that all the values are stores in object space. But now i wanna querry an objects value in WORLD SPACE. eg: I have a locator parented under a Camera. Now camera is animated so follows the locator. I would like to querry the locato…
Hi there, well i wanna querry "rotation" of a camera in object space. But when I have an animated camera and I then querry its rotation values, I get whats there in the chanell box. are those values in object space? If you have any clue about it, let me know. Thanks a lot, Amit
Hi guys, Iam stuck at a little thing... I know that we can get an attribute's value at a perticular time by using "getAttr -t". But i wanna know an object attribute's value in "object space" at a "given time/frame" without moving the timeline slider by looping through it. Is there a way to do …
Hey 1armedScissor, Thanks for the reply. You first way is easy and working, atlease for my color map & viewport needs. I didnt tried the second one. I was using 2 shaders for this " as you said not to use". I figured that in my scene if increased the Diffuse to 3.5 on Maya shader it was giving …
Hi there, Well i dont wanna simulate lighting in viewport. I just wanna see my scene with the textures. Nothing fancy but i guess mr shaders just dont show in vp. so use maya and finally replace them with mr. Cheers, ak
Hi there, From my experience with this scene I can see lighting differs a lot when mentalray shaders are used. Well I think this is what I will do... make al my shaders using maya shaders and and will replace all of them when doing the final rendering. This way ill know how everything is lookin…
Hi there, I was just wondering that whether shaders for mentalray for Maya 7 display in the Viewport or not? I tried using mib_illum_lambert and plugged a file texture in diffuse, Then applied this to a mapped plane. Now this file texture is not showing in the viewport. It shows all green. Is …
Hey Joojaa, well I never thought that will work, but it does.... Cool... Thanks a lot dude. Well you knw what you both solved my 2 problems 1. with the \" in strings and other extra eval that I was using. Good for me, Thanks both of you guys, Have fun, AK
Hi failure, Thanks a lot for explaining [image] . That was really helpful and my command is working now. I knew it was something with the " 's and \'s that was wrong and it was. Thanks, AK
Hi pals, Iam trying to evaluate a simple expresstion using the eval command. But iam stuck with syntax. string $cmd = "expression -s \"" + "if(" + $posObj1[2] + ">" + 0 + ")" + "{" + $selObj[1] + ".translateZ" + "=" + $posObj2[2] + "-" + $distNode + ".distance;\"}" + "else {" + $selObj[1] + ".tr…
Hi there, Thanks for the help. You know what happened...its funny. I got my progressbar working for my export action. what i did was counted the number of polys being exported and made this count the maxValue of progressBar. It worked fine. But then i realised my progressBar was running first an…
Hi guys, Iam still stuck at this.... Does anyone have a solution to it... Please help me. Thanks a lot, Amit
Yeah he mentioned he is new to mel, It might be possible he finds it difficult at first to understand scriptJobs...anyways best of luck patbb [image] "hey any idea on how to implement progressBar ???" iam really stuck at it i want to monitor progress of file being exported... i have asked in …
Hey ewerybody, I changesd my script a little as you pointed, So i dont need any extra scriptJob to kill the first two. And its just working fine [image] I had this extra killing procedure in one of my other script which just wouldnt kill the script jobs on window closure, so i added this extra k…
here's the sample code I hope this solves your purpose [image] proc colorChange() { string $selObj[] = ls -sl; if($selObj[0] != "nurbsSphere1") { button -e -bgc 1 4 11 -l " do Something" -w 100 -align "left" "myButton01"; } else { button -e -bgc 3 44 8 -l " do Something " -w 100 -align …
Hi there, Well if you need the color of button changing automatically when you select a sphere or anything for that matter then you will have to use "scriptJobs" ... If you're new to mel scripting then you might find it a little difficult to set this up but anyways here is an eg: $scrJob1 = scri…
Ok I dont even mind using the global progressBar, until some activity is happening. But the thing is how to monitor progress of the file dump which is this "exporting action of the selected objects to an OBJ file". Any idea's ??? Thanks, Amit
Hi there, Well i have a progress bar in my own script window and dont want to use the global progress bar. And while exporting objects the global bar doesnt shoes progress. The task iam trying to accomplish is that I select a couple of objects and just export them using a button on my scriptU…
Hello all, Iam trying to attach a progress bar to an action which exports selected objects to an .OBJ file. Iam able to attach progressBar to other looping actions but not an exporting file or data, action. If anyone know how to do this or can figure out this, It will be a big relief... Tha…
How to make path text in Shake?