Anim8or Community

General Category => ASL Scripts => Topic started by: neirao on April 19, 2018, 02:24:42 pm

Title: How create New Material with 'TWO SIDED' value by ASL ??
Post by: neirao on April 19, 2018, 02:24:42 pm
Someone know how?? in 'ASL Specification' not show it...
???
Thanks!
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: Steve 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.
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: neirao 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!
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: neirao 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?? ???


Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: Steve 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.
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: neirao 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 :)
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: Steve on May 29, 2018, 06:05:42 pm
Two sided support is coming soon. Preliminary documentation is here (http://www.anim8or.com/scripts/spec/index.html#material_type) but I'm still testing the software.
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: neirao on May 29, 2018, 06:10:42 pm
Wow!  8)
Very Nice!  ;D
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: Steve on May 30, 2018, 02:29:40 pm
I just posted a new build 1325 (http://www.anim8or.com/download/preview/files/animcl1325.zip) with two sided support.

I've attached a script that lists all materials and their properties in a project.
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: neirao on May 31, 2018, 09:51:13 am
Thanks Steve!!

i will try now! :)
Title: Need HELP to new '2D TOON CelShadurr' plugin
Post by: neirao 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 :)


Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: neirao 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'...

Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: neirao on June 02, 2018, 10:12:43 am
#REQUEST HELP #1 (SOLVED) :)

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

- code change:
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: neirao on June 02, 2018, 11:03:02 am
CONTINUES IN THIS NEW POST:
http://www.anim8or.com/smf/index.php/topic,5726.msg43003.html#msg43003
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: Raxx 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.
Title: Re: How create New Material with 'TWO SIDED' value by ASL ??
Post by: neirao on June 04, 2018, 02:58:28 pm
Hi Raxx,
im not so good with ASL, but i continues trying :)

Very Thanks!!