NOTICE Notice: This is an old thread and information may be out of date. The last post was 717 days ago. Please consider making a new thread.
Page 1 of 3 123 LastLast
Results 1 to 20 of 46

Thread: gMaterial tool script

  1. #1
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal

    Thumbs up gMaterial tool script

    Hi My last tool!

    Allows you to edit all materials of an object faster. You do not have to open and browse in materialeditor for a material ID in 24 slots.

    gmat14.jpg

    How to install:
    is MAcroscript drag and drop to viewer

    How to use:
    Select object, press "read Material"
    All materials are listed.
    To edit the material simply click on the name.
    The slot 24 has to be free it is used to edit the material. Is created an instance of the material selected for the slot 24. So the changes are saved in the right place.

    Update v1 bugs fixed.
    Add button "fix Smooth" is a quick Autosmooth faces.


    version v1.1

    Bugs fixed..

    New :
    Geometry tool
    Can create Elements from Polygons.
    Select Vertex from Polygons or Elements

    Version 1.2
    Added import FastLine to max spline from AIW file.

    Version 1.2a
    Option to add CenterLine

    Version 1.3
    +Better AIW import thanks to MonSum
    +Fix Smooth ( put all geometry in group 1 and separate Elements)
    based on the script from alex
    + Copy map Channel to others


    Version 1.4
    + Intersect Polygons
    + Copy Material ( don't copy material name and stage 1)
    + Select double Faces ( don't work yet)
    + Clean Button now clean material list and clean internal memory of max (if max freeze wait 1 min).



    Download
    Last edited by Mario Morais; 05-02-12 at 06:19 AM. Reason: Update

  2. #2
    Kristoff Rand's Avatar

     rFactor 2 Validated PC Specification Facebook profile @Kaptain_Amerika Where I race Modding Group: ~bTp~ 

    Registered
    Dec 2011
    Location
    Springfield, Missouri.
    thank you for your generous contribution.

  3. #3
    Goanna's Avatar

     rFactor 2 Validated PC Specification 

    Registered
    Jan 2012
    Location
    Ingham, Queensland, Australia
    Thanks Mario, unfortunately the link points to your GmotorDX_02 download.

  4. #4
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal
    upS!!! sorry!
    is work now..! ..

  5. #5
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal
    I forgot to include check if object is editable poly.. so the object must be Editable poly ..

    next version. will be correct

  6. #6
    les's Avatar

     rFactor 2 Validated 

    Registered
    Jan 2012
    great tool. i know nothing about scripting i wish i did is there a script that when you click on a area like the track to be able to bring up the sub materials for the let say the track road texture or even having a separate way to edit the materials in a script like track main racegroove spec and so on ??

  7. #7
    les's Avatar

     rFactor 2 Validated 

    Registered
    Jan 2012
    ok figured it out wow really nice tool ty for this

  8. #8
    feels3's Avatar

     rFactor 2 Validated PC Specification @feels3 rF2 Rank Laptimes 

    Registered
    Sep 2011
    Location
    Poland
    It's not working with 3ds max 2012

  9. #9
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal
    Quote Originally Posted by feels3 View Post
    It's not working with 3ds max 2012
    no working? what error you get?

  10. #10
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal
    new version bugs fixed

  11. #11
    feels3's Avatar

     rFactor 2 Validated PC Specification @feels3 rF2 Rank Laptimes 

    Registered
    Sep 2011
    Location
    Poland
    MAXScript Rollout Handler Exception:

    Unknown property: "name" in undefined

  12. #12
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal
    Quote Originally Posted by feels3 View Post
    MAXScript Rollout Handler Exception:

    Unknown property: "name" in undefined

    need more info. open the script in MAXscript editor then run the script. When you get the error the line in editor will be gray. copy the line and paste here

  13. #13
    feels3's Avatar

     rFactor 2 Validated PC Specification @feels3 rF2 Rank Laptimes 

    Registered
    Sep 2011
    Location
    Poland
    for subid=1 to matslot.count while findid == 0 do
    (
    --if (debug) then format "slot:% submat:% \n" slotid subid


    if ( (stricmp matslot[ subid].name submat.name) == 0 ) then
    (
    findid=slotid
    if (debug) then format "slot:% submat:% \n" slotid subid
    )
    )
    ) else

  14. #14
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal
    Quote Originally Posted by feels3 View Post
    for subid=1 to matslot.count while findid == 0 do
    (
    --if (debug) then format "slot:% submat:% \n" slotid subid


    if ( (stricmp matslot[ subid].name submat.name) == 0 ) then
    (
    findid=slotid
    if (debug) then format "slot:% submat:% \n" slotid subid
    )
    )
    ) else
    try new version of script.


    The max 2012 have new materials editor. Can use the old material editor? i don't have max 2012 but maybe in internet i found a fix.
    Last edited by Mario Morais; 03-11-12 at 07:51 AM.

  15. #15
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal
    New version v1.1

    Bugs fixed..

    New :
    Geometry tool
    Can create Elements from Polygons.
    Select Vertex from Polygons or Elements


    Download in first post.

  16. #16
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal
    New version


    Version 1.2
    Added import FastLine to max spline from AIW file.

  17. #17
    freew67's Avatar

     rFactor 2 Validated Modding Group 

    Location
    USA
    Knowledgeable member
    Import fastline... now sir you have my attention

  18. #18
    ethone's Avatar

     rFactor 2 Validated PC Specification rF2 Rank Laptimes Modding Group: virtua_lm 

    Registered
    Nov 2011
    Location
    Düsseldorf, Germany
    Hm, that would mean you could spline-map the groove texture exactly to the fastline of the AI, correct?

  19. #19
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal
    Quote Originally Posted by ethone View Post
    Hm, that would mean you could spline-map the groove texture exactly to the fastline of the AI, correct?
    yes :-) and is better use the real fastline.

  20. #20
    Mario Morais's Avatar

     rFactor 2 Validated PC Specification Facebook profile @mariomorais rF2 Rank Laptimes 

    Registered
    Oct 2010
    Location
    Portugal
    Version 1.2a
    Option to add CenterLine

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •