[Closed] extend freecamera
Hi guys.
I want to start by saying thanks to all of you cgtalkers for the fantastic advices you have given me over the last years. I think I have become a decent scripter by now, although there still is sooo much to learn, but it’s really all thanks to you.
Ok that said, here are some subjects I just don’t seem to get right. If you can answer one or more that would be great.
-
How can I make a camera plugin that extends a freecamera but keeps the original displaymesh? If I don’t provide a “on get displaymesh” function the camera simply has no displaymesh at all. If I do provide one, it doesn’t scale with the viewport.
-
Why do my rollouts appear below the original rollouts? Is it possible to make the new rollouts be on top?
-
I know that it is possible to draw lines and polygons in the viewport that are no real geometry. Like the camera cone for instance. How can I create such? I have experimented with the gw.polyline and gw.triangle methods but they don’t clip correctly. Even if the line goes through geometry it is visible all the time. Can I somehow activate clipping? I noticed that the text actually does perform clipping.
-
And a last very general question : How do I get started learning programming plugins with the SDK? Would these tasks be easier with c++ / c# or a nightmare as well?
If someone could brighten me up on some of these subjects I would be super happy :-).
For #2 – lookup rollouts in the online help, there is an optional int you can provide that indicates the rollout order.
I think its something like:
rollout ro_somerollout01 “A Rollout On Top” category:1 ()
rollout ro_somerollout02 “A Rollout Below” category:2 ()
If you make a floating dialog and add these rollouts they will be in the same order. Now switch the category around and try again – they should reverse. You can even add/remove and add again – they should obey the category order. Check the online help tho – I’m pretty sure its ‘category’.
Hi. Thanks for the advice. I tried it but without success. the rollouts are very persistent.
I did notice something other weird: If I manually reorder the rollouts they always stay this way. Even if I close max and reopen. Even if the plugin code has not been evaluated yet in that session and I evaluate it, the rollouts keep that layout. This is confusing to me.I wonder, is there a file somewhere on my computer which stores the rollout states of all plugins???
David