reset userdata to initial value
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/09/2010 at 10:52, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11,5
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;---------
having a userdata is link/shader, after loading a shader from a material in the userdata I'm not able to "clear" the link/shader-userdata. how to reset it via coffee -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/09/2010 at 11:36, xxxxxxxx wrote:
I can't tell if anything might have changed lately,
but to actually clear the link field and its casheing
I've used the method of AllocObject(Onull), insert it in the
document then Remove() it and set its pointer to NULL.Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/09/2010 at 11:37, xxxxxxxx wrote:
And set the link field as NULL as well if I remember right.
Cheers
Lennart -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/09/2010 at 04:29, xxxxxxxx wrote:
yeah thanx had have no clue how to. thank you for awnsering, first try worked :
var carrier = AllocObject(Onull);
op#ID_USERDATA:44 = carrier ;clears the shader-link and made me happy