Rigging

Rigging101 » Rigging128

radius (9 posts)

About This Topic

Tags

No tags yet.

  1. sandeep Kumar

    offline
    Member
    Posted 5 years ago
    #

    can u tell me, how can i get radius, or parameter of any object via script?

    sandeepkumar
  2. ankitgajjar456

    offline
    Member
    Posted 5 years ago
    #

    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.

  3. sandeep Kumar

    offline
    Member
    Posted 5 years ago
    #

    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.

  4. Javier "Goosh" Solsona (admin)

    offline
    Key Master
    Posted 5 years ago
    #

    You might want to give a bit more information.

    Your questions is VERY generic.

  5. sandeep Kumar

    offline
    Member
    Posted 5 years ago
    #

    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

  6. ankitgajjar456

    offline
    Member
    Posted 5 years ago
    #

    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

  7. sandeep Kumar

    offline
    Member
    Posted 5 years ago
    #

    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

  8. ankitgajjar456

    offline
    Member
    Posted 5 years ago
    #

    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

  9. ankitgajjar456

    offline
    Member
    Posted 5 years ago
    #

    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

    http://www.jason-parks.com/artoftech/?page_id=149

Reply

You must log in to post.

Rigging101 » Rigging128
1,099 posts in 307 topics over 110 months by 188 of 8,226 members. Latest: fashionpvp, d2q4p5z2j, gasheldonl