PepGold Posted July 16, 2021 Share Posted July 16, 2021 Let say I create a vec3 variable var ctr=vec3(R,G,B) Can I then access each item (red, green, blue)individually in the vec3, like ctr.R Quote Link to comment Share on other sites More sharing options...
John Rostron Posted July 16, 2021 Share Posted July 16, 2021 Have you tried it? John Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
PepGold Posted July 17, 2021 Author Share Posted July 17, 2021 23 hours ago, John Rostron said: Have you tried it? Yes :D It didn't work for me. John Rostron 1 Quote Link to comment Share on other sites More sharing options...
firstdefence Posted July 17, 2021 Share Posted July 17, 2021 What are you trying to achieve? Quote iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9 (Please refrain from licking the screen while using this forum) Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions Link to comment Share on other sites More sharing options...
John Rostron Posted July 18, 2021 Share Posted July 18, 2021 14 hours ago, belief-begin-conjoin said: Yes It didn't work for me. Doesn't that answer your question then? John Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
NotMyFault Posted July 18, 2021 Share Posted July 18, 2021 (edited) It is possible, but not well documented. Only lowercase letters work, and rgb or xyz are possible: .r, .x .g, .y .b, .z You can only access components in the same line where it is defined, and „var“ are in reality not variables, but constants. So carefully check that you stick to all these constraints. Edited July 18, 2021 by NotMyFault added lowwercase requirement dmstraker 1 Quote Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.