THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/06/2008 at 09:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.5
Platform: Windows ;
Language(s) : C++ ;
---------
Hi Folks!
I need your help ;)
I'm working on an ObjectData plugin and I want to set values to an object's surface by placing a texture on it, like it is possible in MoGraphs Shader-Effector.
In other words: i want to link a texture-tag, select the channel to be used and then calculate the color of a position on the object's surface.
I've tried it with channel->sample and shader->sample, but both are - in my opinion - independent from the texture-projection.
I've also tried GetSurfaceData, but it demands VolumeData, that is not available in an ObjectData plugin, i think. ...or am i totally wrong?
I hope, this question isn't that stupid ;) I'm such a beginner in c++...
And i searched a long time, here in the forum, without finding a hint.
So it would help me, if you can tell me:
a) if it's possible at all
b) if theres a example or forum topic i missed
c) the general approach or/and
d) which functions/classes i should take a closer look at.
Any help would be very appreciated,
Cheers,
Mark.