Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Pages: [1] 2

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

neirao

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

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

Steve

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

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: 617
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #2 on: April 20, 2018, 01:52:54 pm »

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: 617
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #3 on: April 20, 2018, 02:20:27 pm »

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: 1724
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #4 on: May 27, 2018, 07: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, 07:30:11 pm by Steve »
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 617
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #5 on: May 29, 2018, 09: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: 1724
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #6 on: May 29, 2018, 10: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: 617
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #7 on: May 29, 2018, 10:10:42 pm »

Wow!  8)
Very Nice!  ;D
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1724
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #8 on: May 30, 2018, 06: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: 617
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #9 on: May 31, 2018, 01:51:13 pm »

Thanks Steve!!

i will try now! :)
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 617
  • Neirao
    • View Profile
Need HELP to new '2D TOON CelShadurr' plugin
« Reply #10 on: May 31, 2018, 06: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, 02:57:36 pm by neirao »
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 617
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #11 on: May 31, 2018, 06: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: 617
  • Neirao
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #12 on: June 02, 2018, 02:12:43 pm »

#REQUEST HELP #1 (SOLVED) :)

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

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

neirao

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

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1477
    • View Profile
Re: How create New Material with 'TWO SIDED' value by ASL ??
« Reply #14 on: June 04, 2018, 04: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