-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is "style" function supported? #214
Comments
Thanks for your message. Style support is unfortunately limited - do you have a small CGA snippet which reproduces the problem? |
of course it's just simple pre-modeled window insertion rules @range (min = 0, max = 50, stepsize =0.1) @range (min = 0, max = 50, stepsize =0.1) @range (min = 0, max = 50, stepsize =0.1) @range (min = 0, max = 50, stepsize =0.1) @range (min = 0, max = 50, stepsize =0.1) @range (min = 0, max = 2, stepsize =0.001) @range (min = 0.001, max = 50, stepsize =0.001) @StartRule //coltest --> selfrontback --> selfrontbackO --> windowSplitX --> selsides --> windowSplitZ --> window1 --> window4 --> inputWindow -->
LedgeColor --> wallMatA --> LedgeMat --> /////////////////////////////////////////////////////////////////////////// style window_style2 WindowsStart --> selfrontA --> selbackA --> windowSplitXA --> selsidesA --> windowSplitZA --> inputWindowA --> LedgeColor --> LedgeMat --> |
Switching to debug log level indicates that there's something wrong with the rule applied to the initial shape. Though the value of
Going to debug this... |
Ok, I found a bug in Palladio when setting the style. Hope to fix this in the next release. As a workaround, and as you are only switching between rules and not attributes, I suggest to introduce another attribute (maybe an enum) to switch between the rules. Btw, did you create a RPK directly from the code sample you provided? Which CityEngine version did you use to create the RPK? (I noticed a problem in CityEngine when the '@StartRule` is set on a rule which is present in multiple style.) |
Hello, thank you for the update! yes I created a RPK directly from the code sample I used CityEngine 2022.1 I'm new to this, so my script might be a mess |
Interesting, I got an error regarding "multiple 'WindowsStart' start rules defined" (or similar) when creating the RPKs. I had to insert an indirection to be able to reproduce your original issue:
|
That might be completely my fault sorry about the confusion! |
No worries, this is actually a bug (or at least an unnecessary limitation) in CityEngine, I've logged an issue 👍 |
I have CGA rule has different styles, instancing different obj files for windows
Houdini picks up only default style and gives me an error|
wondering "style" feature is supported in Palladio?
The text was updated successfully, but these errors were encountered: