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

Use a curve as value processor input

Community Beginner ,
Dec 13, 2023 Dec 13, 2023

Copy link to clipboard

Copied

Hi there,

 

I have this question that in my opinion would be great if it works.

 

Is it possible to use a curve as value processor input so it can be used as custom distribution instead of a linear one?

 

What I am trying to make is a remap a linear distribution based in a custom curve. Instead of using a linear one where all the samples are equally distributed, using the curve would remap these values in the position where we want.

 

Thank you

TOPICS
General , How to , Scripting

Views

241

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 , Dec 15, 2023 Dec 15, 2023

You could do that with a grayscale curve plugged into a second sample input.

Then use that do adjust the interpolation point of your value

2023-12-15_19-16-22.jpg

2023-12-15_19-18-51.jpg

Dave

 

Votes

Translate

Translate
Community Expert ,
Dec 13, 2023 Dec 13, 2023

Copy link to clipboard

Copied

I'm struggling to envisage what you are trying to achieve. Could you show what you want to see as an input and an output, that way we may find a way.

 

Dave

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 ,
Dec 14, 2023 Dec 14, 2023

Copy link to clipboard

Copied

Yes the main idea is use a curve as input of a value processor so it can be used for example with the linear interpolation node so it can outputs non lerp distribution numbers.

 

Hope it can be easier to understand with the attached images. 

- I create a curve in the main graph and attach it to a value processor node.

- I import this curve inside the value processor so it can be used in a non linear distribution function as input.

 

Thank you for your time.

 

 

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 ,
Dec 15, 2023 Dec 15, 2023

Copy link to clipboard

Copied

You could do that with a grayscale curve plugged into a second sample input.

Then use that do adjust the interpolation point of your value

2023-12-15_19-16-22.jpg

2023-12-15_19-18-51.jpg

Dave

 

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 ,
Dec 18, 2023 Dec 18, 2023

Copy link to clipboard

Copied

What I was trying to make is to remap an exposed parameter with the curve instead of a linear approach.

From your previous answer I had just to import that parameter with a get float and connect it to both inputs of the vector float2.

It works !!!!! Very powerful tip IMHO. I really recommend it.

 

Thank you for your time Dave

 

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 ,
Dec 19, 2023 Dec 19, 2023

Copy link to clipboard

Copied

LATEST

You're welcome - glad I could help.

Dave

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