![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: constructing hot values with single quotes |
Phi Curtis Member |
![]() ![]() ![]() Hi, I used a prefixer to duplicate a structure in a sound, and the id field in the prefixer uses '_2' as the suffix that I am constructing - so the resulting hot value looks like !HotValue'_2' (i.e with single quotes as part of the name). It was a pretty big structure that I duplicated and I went to some trouble to get the VCS organized, etc., so it is not an easy thing for me to change the suffix now. The problem is that I now want to refer to one of the hot values constructed in this way elsewhere in the sound, and I am having trouble constructing it. If you type !HotValue'_2', it won't compile, and something like (!HotValue suffix2: '_2') actually compiles as !HotValue_2, not !HotValue'_2'. Any suggestions? thanks, IP: Logged |
SSC Administrator |
![]() ![]() ![]() I think if you put the single quote within single quotes, you can indicate that you want the single quote as a string. For example: ('HotValue', '''_2''') asHotValue should generate the hot value you need. Alternatively, you could use: !HotValue suffix: '''_2''' IP: Logged |
Phi Curtis Member |
![]() ![]() ![]() Thanks! I had tried putting the whole expression within quotes (as in ' '_02' '), but of course I needed to put the single quotes by themselves inside quotes. IP: Logged |
Phi Curtis Member |
![]() ![]() ![]() Hmmm, one problem is that I now want to generate a global controller that has single quotes in the parameter name (don't ask why - it's complicated). But if I put !AmpFollower'_1' as the GeneratedEvent parameter, I get a warning that says "The GeneratedEvent used in the SoundToGlobalController named "!AmpFollower'_1'" is an expression of one or more Event Sources. Please use a GeneratedEvent that is an Event Source directly. I've never tried to construct a Global Controller name before. I guess it isn't possible? IP: Logged |
SSC Administrator |
![]() ![]() ![]() Does the following work? ('AmpFollower', '''_1''') asHotValue IP: Logged |
Phi Curtis Member |
![]() ![]() ![]() quote: No, that gives the same message. IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.