Skip to content
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

More than one ? #5

Open
Oreip opened this issue Jan 22, 2015 · 3 comments
Open

More than one ? #5

Oreip opened this issue Jan 22, 2015 · 3 comments

Comments

@Oreip
Copy link

Oreip commented Jan 22, 2015

Hi there !

You have done a really great job with this Interactive 3D script.

I try to have more than one turnable object, but if I add one more, I have an issue : I can turn the first object (or the second), but when I turn the other, the first one turn too.

One solution is to do a new script, and change names. But if we want something like 10 turnable objects, it's a little bit onerous..

Do know this issue ? Do you have solution ?

Thank you for reading,

Peter

@guiguerino
Copy link

Did you get solutions?

@guiguerino
Copy link

guiguerino commented Jul 11, 2017

If you still need it, you just need to copy the script again, and rename the "id" call. Example:

    <script>
  $(document).ready( function() {
    $("#i3d").interactive_3d({
      frames: 38
    });
  });
	
</script>

<script>
  $(document).ready( function() {
    $("#i33d").interactive_3d({
      frames: 38
    });
  });
	
</script>

@timofo
Copy link

timofo commented Nov 14, 2019

If anyone's still interested in a solution.
Line 60:
if($('.draggable').length > 0 && $el.hasClass('draggable')) {
You have to add the "hasClass" Condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants