Is there a way to manipulate instances individually in perform mode? select one, translate, rotate, scale.
Hi @papsphilip,
that is certainly doable but depends largely on your setup and will require some python coding - there is no build in way for this.
You can get access to an instance via the Render Pick DAT. From there you could implement selection and transformation logic.
Also check out TDGizmo by @mickeyvanolst
not sure if it deals with Instances but worth checking into it.
cheers
Markus
thanks! yeah found the render pick dat so i can access the instance id.
After that if i wanted to select an instance and drag it around, where would i find the python function for that?
i will check out the td gizmo, looks promising
Hi @papsphilip,
you would have to roll your own functions as you would have to modify the transformation data that creates your instances originally. You might need to save the information for each instance in a Table DAT, then apply any transformation to this data before it is being passed to the Geo COMP again.
cheers
Markus
Hi @snaut ,
thanks for the info! i was talking about something like a callback like you have in a CHOP execute, on to off, while on etc. i was wondering if there is a WhileDrag equivalent. After that i can think of ways to apply that to the transformation, but i am a bit stuck detecting the mouse drag.
Tried using the mouse in CHOP, get the left button click and while its 1 i want to hold the current instance value. But the hold CHOP needs 0 to 1 to 0 change in order to hold something as far as i understood. So my left mouse button being 1 as long as i drag doesnt help.
Hi @papsphilip,
the Render Pick DAT’s onEvents
callback kind of takes care of all of these. It receives an event with a fields:
selectStart
select
andselectEnd
so a while drag would be dealt with while the select
evaluates to True
Hope this helps
cheers
Markus