Is there a way in vex of handling string attributes? I want to be able to import them but it seems from the docs and VOPs that you can only import numerical types. :cry:
I need to create them too….
String attributes in VEX
6978 6 2- Simon
- Member
- 2199 posts
- Joined: July 2005
- Offline
- Mario Marengo
- Member
- 941 posts
- Joined: July 2005
- Offline
Simon
Is there a way in vex of handling string attributes? I want to be able to import them but it seems from the docs and VOPs that you can only import numerical types. :cry:
I need to create them too….
I'm afraid not. At least not in the OP contexts.
And I don't think you can even sneak it in by predefining it (e.g: with an AttribCreate SOP) and then stuffing it in a string parameter….
As far as I can tell, in the OP contexts (and up until version 6.5.95):
1. You can't import string attribs
2. You can't export string attributes (either by tagging them as export, or by using the AddAttribute VOP).
3. Both string and numerical parameters evaluate expressions, but don't recognize predefined attribute-to-local-variable mappings. (i.e: you can't put “$MYCUSTOMFLOAT*3” in a numerical parameter, but you *can* put something like “$T*3” or `strcat(opname('.'),$F)` for a string param)
4. If a custom local variable is embedded in an expression (for a parameter value), the failure to evaluate it (see #3) doesn't put the vex OP in an error state – it does if you enter it directly, though – meaning there's no feedback that something failed.
There are probably some more quirks, but I can't remember right now…
hmmm…. maybe I should post these as bug/rfe's in the beta forum…
Cheers!
- Simon
- Member
- 2199 posts
- Joined: July 2005
- Offline
Well I guess I'll have to rfe it then, seems daft that you can create point string attributtes but not read or write them in vex. I going to have to come up with some crazy work around for this….
Do you happen to know if this sort of thing is doable in the HDK?
Do you happen to know if this sort of thing is doable in the HDK?
The trick is finding just the right hammer for every screw
- Mario Marengo
- Member
- 941 posts
- Joined: July 2005
- Offline
- xiondebra
- Member
- 543 posts
- Joined: July 2005
- Offline
Simon
Do you happen to know if this sort of thing is doable in the HDK?
Yes, indeed, it can be done in the HDK … I know there's reasons that SESI doesn't bundle the HDK with Houdini (support stuff don't ya know), but I still believe the benefit to the Houdini community would outweigh the potential downside … I know, it's an old song, but I still feel it needs to be sung … :-)
–Mark
========================================================
You are no age between space
You are no age between space
- Simon
- Member
- 2199 posts
- Joined: July 2005
- Offline
- xiondebra
- Member
- 543 posts
- Joined: July 2005
- Offline
SimonHi Simon,
It's not that I can do it myself, but we have an HDK license so if I can find a friendly programmer I might be able to get it done…
I *might* be able to help you … I'll send you a private message with more info/questions.
–Mark
========================================================
You are no age between space
You are no age between space
-
- Quick Links