Skip to main content
Hesterry
Participant
September 22, 2017
Answered

Render fibers with a script?

  • September 22, 2017
  • 2 replies
  • 326 views

Hello! Is there any method for rendering Fibers via script, like the applyClouds method? I've spent a few hours looking and experimenting, but I can't seem to find anything. Thank you!

This topic has been closed for replies.
Correct answer SuperMerlin

You can use Action Manager code I.E.

#target photoshop;

fibers(15,4);

function fibers(Variance,Strength) {

var ad = new ActionDescriptor();

ad.putInteger( charIDToTypeID( "Vrnc" ), Variance );

ad.putInteger( charIDToTypeID( "Strg" ), Strength );

ad.putInteger( charIDToTypeID( "RndS" ), Math.random()*10000000 );

executeAction( charIDToTypeID( "Fbrs" ), ad, DialogModes.NO );

};

2 replies

Hesterry
HesterryAuthor
Participant
September 22, 2017

Exactly what I needed! Thank you so much

SuperMerlin
SuperMerlinCorrect answer
Inspiring
September 22, 2017

You can use Action Manager code I.E.

#target photoshop;

fibers(15,4);

function fibers(Variance,Strength) {

var ad = new ActionDescriptor();

ad.putInteger( charIDToTypeID( "Vrnc" ), Variance );

ad.putInteger( charIDToTypeID( "Strg" ), Strength );

ad.putInteger( charIDToTypeID( "RndS" ), Math.random()*10000000 );

executeAction( charIDToTypeID( "Fbrs" ), ad, DialogModes.NO );

};