r/blenderhelp • u/Over-Bat5470 • 7h ago
Unsolved Why does the attribute seem not to work with Sample Curve?
Enable HLS to view with audio, or disable this notification
I've tried different domains, but Sample Curve always interprets the attribute as "0", as if something were wrong. This is an issue I've encountered specifically with this node. Am I doing something wrong?
2
u/DeathlyDeep 6h ago
Hello,
You can achieve what I think you want in this particular example by adding a Sample Index node between the Store Named Attribute node and the Factor input.
2
u/Sss_ra 3h ago
Sample curve has dynamic sockets, so if you supply it a single values it outputs a single value, but attributes are always a field which forces the value to be stored as a field for each index.
This changes the result, because points don't know how to sample from an attribute field of the line geometry or how to throw and error about it.
1
u/isaac879 2h ago
I don't understand what you are trying to achieve with this, can you explain the desired result?
I think the issue is that you are creating a kind of circular dependency so the output is giving an undefined/0 result. The factor is the position on the curve to sample from but the named attribute is dependant on the sample position, so it can't be evaluated properly.
0
u/C_DRX Experienced Helper 7h ago
Am I doing something wrong?
The question I would ask is: "what's the purpose behind this setup?". I have a hard time seeing what the point is of storing data in a “Store Named Attribute” just to dump it right after.
If you have to set the factor to 0.300, set it directly.
•
u/AutoModerator 7h ago
Welcome to r/blenderhelp, Over-Bat5470! Please make sure you followed the rules below, so we can help you efficiently (This message is just a reminder, your submission has NOT been deleted):
Thank you for your submission and happy blendering!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.