• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Neural filters script

Community Beginner ,
Nov 10, 2021 Nov 10, 2021

Copy link to clipboard

Copied

Hello.
I need to write the action of the "Skin Smoothing" neural filter into a script JS.
With the values:
Blur "+100"
Smoothing "+50"

With the output to a new layer with a mask.
In case, if the persons neuro filter will not find - do nothing.

ScriptListener.8li does not give the necessary result. The script comes out with 9 thousand lines, and there is an error somewhere in it.


I need the script to integrate into streaming automation, to automatically distinguish between frames with people.

Neuro filter from version 22 worked fine. But the new one, if it does not find faces, it generates an error, which slows down the whole automation.

 

Thanks in advance for the help.

TOPICS
Actions and scripting

Views

947

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 12, 2021 Nov 12, 2021

I'm reading the OP differently than some others. Remove the first :: in each line, retaining all other :: thereafter. Any regex enabled program or a website such as regex101 or regexr can fix the code for you. Here is a sample screenshot of the regex with colour highlighting:

 

regex.png

Votes

Translate

Translate
Adobe
Community Expert ,
Nov 10, 2021 Nov 10, 2021

Copy link to clipboard

Copied

I get an error in both version 22 and 23.  9K lines of Action manager code and an error

image.png

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 11, 2021 Nov 11, 2021

Copy link to clipboard

Copied

I moved the thread to Bugs section for further investigation.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Nov 11, 2021 Nov 11, 2021

Copy link to clipboard

Copied

Nothing should be a problem with that line. I would use double qoutes instead of the single quotes. Neural filters has issues with recording and playback, getting better each release. But it should do something. Make sure you upgrade to our 23.0.1 that came out yesterday.

I missed the :: for the varialbe name. See regexp solution below. I told them that :: in their key names was a bad idea. I'll see if I can fix ScriptListener for this case.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 16, 2021 Nov 16, 2021

Copy link to clipboard

Copied

LATEST

Thank you for checking the other posts I merged to this thread, but why this thread was moved from Bugs section to Discussions if possibly this problem is going to be fixed in some future. Shouldn't this thread be moved back to Bugs, all the more I noticed already 3 users reported wrong Neural Filter output within short time? btw correct solution re-marked temporarily as workaround.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 12, 2021 Nov 12, 2021

Copy link to clipboard

Copied

Yes. I have the latest version of Photoshop.
Unfortunately, an error occurs when I try to play the script.
The problem is with this particular filter.

 

 

I found that the PluginData folder contains SkinSmoothingLow2 and SkinSmoothingLow. Is there any way to switch to the old version, which worked stably in my tasks? That is, to SkinSmoothingLow.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 12, 2021 Nov 12, 2021

Copy link to clipboard

Copied

Hello,

I'm totally new in scripting and need help.
I have some scripting-code (only a snippet) from Script-Listener, but it has a few bugs. As you can see, every variable has a name with 2 colons (::). How to delete these colons without deleting the colons of the stringIDToTypeID?
Can this be fixed in the script-Listener or can this be with a regex in a script? How?

 

                var idspl::bottom = stringIDToTypeID( "spl::bottom" );
                desc62.putString( idsplbottom, """copyIn""" );
                var idspl::top = stringIDToTypeID( "spl::top" );
                desc62.putString( idspltop, """convertType""" );
                var idspl::variable = stringIDToTypeID( "spl::variable" );
                    var desc63 = new ActionDescriptor();
                    var idspl::ID = stringIDToTypeID( "spl::ID" );
                    desc63.putInteger( idsplID, 12385 );
                    var idspl::type = stringIDToTypeID( "spl::type" );
                    desc63.putString( idspltype, """image""" );
                var idnull = charIDToTypeID( "null" );
                desc62.putObject( idsplvariable, idnull, desc63 );
            var idnull = charIDToTypeID( "null" );
            list5.putObject( idnull, desc62 );
                var desc64 = new ActionDescriptor();
                var idspl::ID = stringIDToTypeID( "spl::ID" );
                desc64.putInteger( idsplID, 12265 );
                var idspl::bottom = stringIDToTypeID( "spl::bottom" );
                desc64.putString( idsplbottom, """copyIn""" );
                var idspl::top = stringIDToTypeID( "spl::top" );
                desc64.putString( idspltop, """resize""" );
                var idspl::variable = stringIDToTypeID( "spl::variable" );

 

Any help is welcome.

Regards
Oliver

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 12, 2021 Nov 12, 2021

Copy link to clipboard

Copied

If none of the :: are correct a global replace of :: with : should do.

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 12, 2021 Nov 12, 2021

Copy link to clipboard

Copied

As JJ mentioned, just a global replace will work, using the find and replace that comes with most editing software. It's not something that you need to write a script for and use regex. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 12, 2021 Nov 12, 2021

Copy link to clipboard

Copied

What exact action you performed to log this code in ScriptListenerJS file?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 12, 2021 Nov 12, 2021

Copy link to clipboard

Copied

I believe its the 9,000+ lines of Action manager code that Scriprlisener plug-in records for anneural filter step. There seems to be some issue.

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 12, 2021 Nov 12, 2021

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 12, 2021 Nov 12, 2021

Copy link to clipboard

Copied

I'm reading the OP differently than some others. Remove the first :: in each line, retaining all other :: thereafter. Any regex enabled program or a website such as regex101 or regexr can fix the code for you. Here is a sample screenshot of the regex with colour highlighting:

 

regex.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 13, 2021 Nov 13, 2021

Copy link to clipboard

Copied

Thanks to all (especially Stephen_A_Marsh) - problem solved 🙂

 

@Stephen_A_Marsh

Your regex work like a charm.

 

@Kukurykus 
Thanks for the link - that's exact the same problem I had.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 13, 2021 Nov 13, 2021

Copy link to clipboard

Copied

I read the same, but my goal was not to fix the effects but go deeper to source of problem 😉

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 13, 2021 Nov 13, 2021

Copy link to clipboard

Copied

The workaround of course let work with SL output, but let's hope the mere bug is going to be fixed.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines