Jump to content

Get Default values


g_sures

Recommended Posts

Posted (edited)

It looks like Default Value is a scripting property (at least as of 8.6). So in the development environment, the answer would be yes. No so in an application.

A work around may be to save your current value, invoke the Reinitialize to Default (use an invoke node), grab the new value (the default), and then set the value back to your original saved value. Hopefully somebody smarter than I has a better idea than that.

Edited by crossrulz
Posted

A work around may be to save your current value, invoke the Reinitialize to Default (use an invoke node), grab the new value (the default), and then set the value back to your original saved value.

Like this: 

post-7534-005960900 1284481618_thumb.png

Posted

It looks like Default Value is a scripting property (at least as of 8.6). So in the development environment, the answer would be yes. No so in an application.

I'm assuming it's a private property, not a scripting property, since it doesn't involve the code. It's quite possible that it does work in an executable. There's no particularly good reason for it not to work.

Posted

The node is blue. Doesn't that mean that it's scripting?

I believe it does. If memory serves, blue is scripting, brown is private and red is deprecated. In any case, even if a property is marked as a scripting property, I don't think it automatically means it won't work in an EXE. Obviously, it won't work if it needs the diagram, because the RTE doesn't know how to read the diagram, but it will probably work for something like this.

In any case, the only way to know for sure is to test it, although I wouldn't suggest this to Kumar.

Kumar, what are you actually trying to achieve?

P.S. You can also see the details of each property in the context help or detailed help for it.

Posted (edited)

In any case, the only way to know for sure is to test it

I tested it.  It worked in an executable. 

post-7534-020681400 1284569386_thumb.png

Edited by jcarmody

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.