Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Pages: [1] 2

Author Topic: How create New Material with 'TWO SIDED' value by ASL ??  (Read 35346 times)

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
How create New Material with 'TWO SIDED' value by ASL ??
« on: April 19, 2018, 02:24:42 pm »

Someone know how?? in 'ASL Specification' not show it...
???
Thanks!
« Last Edit: April 19, 2018, 02:25:55 pm by neirao »
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2124
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #1 on: April 20, 2018, 09:03:26 am »

This logo like something that I forgot to include in ASL. I'll see if I can add something to support two sided materials.
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #2 on: April 20, 2018, 09:52:54 am »

Thanks Steve! :)

i think is missing another function in ASL for meshs kind -> "'SHAPE_KIND_SUBDIVISION'
check this my another post:
http://www.anim8or.com/smf/index.php/topic,5715.0.html

Thanks!
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #3 on: April 20, 2018, 10:20:27 am »

Edit:  :)
How choose the place for 'new material color' by ASL?
by default is 'Object' how choose 'File' as place?? ???


Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2124
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #4 on: May 27, 2018, 03:29:40 pm »

$myMaterial = project.NewMaterial("name");  -- Adds material to the current project (i.e. to File)

$myMaterial = $object.NewMaterial("name");  --  Adds material to $object.
« Last Edit: May 27, 2018, 03:30:11 pm by Steve »
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #5 on: May 29, 2018, 05:48:05 pm »

Steve, works!!

now i need only the 'Two Sided Material' by ASL for implements the 'Cel-shading script by Raxx'
and create a new automatic/full  'cel shading' button  ;)

Thanks :)
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2124
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #6 on: May 29, 2018, 06:05:42 pm »

Two sided support is coming soon. Preliminary documentation is here but I'm still testing the software.
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #7 on: May 29, 2018, 06:10:42 pm »

Wow!  8)
Very Nice!  ;D
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2124
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #8 on: May 30, 2018, 02:29:40 pm »

I just posted a new build 1325 with two sided support.

I've attached a script that lists all materials and their properties in a project.
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #9 on: May 31, 2018, 09:51:13 am »

Thanks Steve!!

i will try now! :)
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Need HELP to new '2D TOON CelShadurr' plugin
« Reply #10 on: May 31, 2018, 02:09:11 pm »

Thanks Steve,
for ASL var for new 'Two Sided Material'' :)
works fine.

i starts the creation of the New 'Raxx´s CelShadurr', but i need some helps:

@Raxx
i attach below the preview new Script V.04 (CelShadurr v0.4.a8s) button script:
and need HELPS to finishing :(

Thanks Advance :)


« Last Edit: June 02, 2018, 10:57:36 am by neirao »
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #11 on: May 31, 2018, 02:14:09 pm »


PS: @Steve  in this my new Sample/Code when i merges with Raxx´s plugin code the
'$currentMaterial = project.NewMaterial("BLACK_OUTLINE");' not is accepted, only MODE '$obj.NewMaterial'...

Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #12 on: June 02, 2018, 10:12:43 am »

#REQUEST HELP #1 (SOLVED) :)

-Auto Black color on Outline [LIVE DEMO BELOW]:
[/youtube]

- code change:
« Last Edit: June 02, 2018, 10:57:55 am by neirao »
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Logged

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1482
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #14 on: June 04, 2018, 12:46:13 pm »

Sorry I haven't been able to look at this yet.

The first issue of the inside material showing white instead of the actual material color seems like an internal Anim8or issue that might not be able to be fixed via ASL. You can try the refresh() command after generating and applying the material to see if it helps.

As for picking different shapes for different celshading, it can't be done with parametric shapes since there's no way to get the current selection from within the parametric shape script. You'd have to turn it into a command script and use attributes to determine the outline widths and other parameters.
Logged
Pages: [1] 2