Notifications
Clear all

[Closed] DotNet and auto conversion

DotNet automaticly converts all System.String objects to maxscript String values. However, I want to perform DotNet operations on my string, so how can I avoid this autoconversion?

local s = (dotNetClass “Clipboard”).GetText()

I want s to contain DotNet class, NOT maxscript class.

2 Replies

Try :

local mxsString = (dotNetClass "Clipboard").GetText()
local dotNetString = dotNetObject "System.String" mxsString

Thank you, works perfectly