No tags yet.
can u tell me, how can i get radius, or parameter of any object via script?
You can use getAttr for knowing the values of parameters of any object for e.g:-
I have an sphere and i want to know what is its radius then i would run an command : getAttr "polySphere1.radius";
and it will return to me with : // Result: 4.2 (in command line)
I hope this was helpful.
sorry sir it is not quite enough help full to me. I am writing script on car. and I need radius of wheel wheel may be made by cylinder, torus or other one.
I can get radius of only sphere by this. reply if you have any solution.
You might want to give a bit more information.
Your questions is VERY generic.
this is expression which i have to written
i want to calculate radius of wheel via script, i can calculate it via measurment distance tool bt i m not be able to calculate it in script usin string,
i think it is enough info for question
sorry for so late reply but you man do that by get with fo the object and then divide it by 2, so if you want to do this by script the i think it take time for knowing how to get output which you want
i know manual method bt i need to get parameter of any object. i hav an idea if m able to get position of vertex at max distance from centre then i can get my result. try to do something for my help.
thanks for replying
again i m sorry for late
to get position of vertex move the vertex from it position and then undo the command u will see n script in command line
so try it
here is helpful link for you
download MEL for Artists 2005 MasterClass
its free, old but really good
u can also ask jason if you have any problem or if you r unable to create any script
he is great artist
You must log in to post.